Created
May 27, 2019 06:12
-
-
Save executeautomation/f0f5d291ddfea4f054fe54da6fd497c2 to your computer and use it in GitHub Desktop.
ClearTextBox Addon Test
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 ClearTextBoxAddon.Addons; | |
using OpenQA.Selenium; | |
using System.Threading; | |
using TestProject.SDK; | |
using TestProject.SDK.Drivers; | |
namespace ClearTextBoxAddon | |
{ | |
public class ClearTextBase | |
{ | |
public static void RunAction(Runner runner) | |
{ | |
var action = new ClearText(); | |
var driver = (WebDriver)runner.GetDriver(); | |
driver.Navigate().GoToUrl("http://executeautomation.com/demosite/Login.html"); | |
driver.FindElementByName("UserName").SendKeys("admin"); | |
driver.FindElementByName("Password").SendKeys("admin"); | |
//Call the ClearText addon - Password control | |
runner.Run(action, By.Name("Password")); | |
Thread.Sleep(3000); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment