public static CommandPage NavigateTo(IWebDriver webDriver) { driver = webDriver; driver.Navigate().GoToUrl("http://localhost:7777/command"); var page = new CommandPage(); PageFactory.InitElements(driver, page); return page; }
public static CommandPage NavigateTo(IWebDriver webDriver) { driver = webDriver; driver.Navigate().GoToUrl("http://localhost:7777/command"); var page = new CommandPage(); PageFactory.InitElements(driver, page); return(page); }
public void echo(string cmds) { cmd.SendKeys(cmds); args.SendKeys(""); submit.Click(); var page = new CommandPage(); PageFactory.InitElements(driver, page); }
public void GivenIGoToPageCommand() { page = CommandPage.NavigateTo(driver); }