//[FindsBy(How = How.XPath, Using = PASSWORD_TEXT_FIELD)] //public IWebElement passwordTextField; //[FindsBy(How = How.XPath, Using = LOGIN_BUTTON)] //public IWebElement loginButton; public static LoginPage GetLoginPage() { LoginPage loginPage = new LoginPage(); InitPage(loginPage, loginPage.baseUrl); loginPage.userNameTextField = Driver.FindElement(By.XPath("//input[@id='username']")); return loginPage; }
public static LoginPage GetLoginPage() { LoginPage loginPage = new LoginPage(); InitPage(loginPage); return loginPage; }