public void RunAction() { // Create Action var action = new ClearFieldsAction(); // Prepare state driver.FindElement(By.Id("name")).SendKeys("John Smith"); driver.FindElement(By.Id("password")).SendKeys("12345"); // Run action runner.Run(action); }
public static void RunAction(Runner runner) { // Create Action var action = new ClearFieldsAction(); // Prepare state var driver = (WebDriver)runner.GetDriver(); driver.Navigate().GoToUrl("https://example.testproject.io/web/"); driver.FindElement(By.Id("name")).SendKeys(name); driver.FindElement(By.Id("password")).SendKeys(password); // Run action runner.Run(action); Thread.Sleep(1000); }
static void RunAction(Runner runner) { // Create Action var action = new ClearFieldsAction(); // Get the Driver var driver = (IOSDriver <IOSElement>)runner.GetDriver(); // Prepare the App driver.ResetApp(); // Prepare state driver.FindElement(By.Id("name")).SendKeys("John Smith"); driver.FindElement(By.Id("password")).SendKeys("12345"); // Run action runner.Run(action); }