Skip to content

Instantly share code, notes, and snippets.

@executeautomation
Created May 27, 2019 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save executeautomation/f0f5d291ddfea4f054fe54da6fd497c2 to your computer and use it in GitHub Desktop.
Save executeautomation/f0f5d291ddfea4f054fe54da6fd497c2 to your computer and use it in GitHub Desktop.
ClearTextBox Addon Test
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