Created
May 27, 2019 06:10
-
-
Save executeautomation/f0d73f655fdd6b0dd7e03e183f734a36 to your computer and use it in GitHub Desktop.
TestProject .NET Core Addon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using OpenQA.Selenium; | |
using TestProject.Common.Attributes; | |
using TestProject.SDK; | |
using TestProject.SDK.Addons.ElementAction; | |
using TestProject.SDK.Addons.Helpers; | |
namespace ClearTextBoxAddon.Addons | |
{ | |
[Action(Name = "Clear Text", Description = "Clears text from the Textbox of Web UI")] | |
public class ClearText : IWebElementAction | |
{ | |
public ExecutionResult Execute(WebAddonHelper helper, IWebElement element) | |
{ | |
var driver = helper.Driver; | |
//Clear the elements text | |
element.Clear(); | |
return ExecutionResult.Passed; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment