public HomeSiteSteps(ScenarioContext scenarioContext) { _scenarioContext = scenarioContext; _driver = WebHooks.Driver; _wait = new WaitLoads(5); _homeSitePO = new HomeSitePO(); }
public CreateUserPO() { _driver = WebHooks.Driver; access = new HomeSitePO(); alerts = new Alerts(); wait = new WaitLoads(); byInputEmail = By.CssSelector("#email_create"); byBtnCreateAnAccount = By.Id("SubmitCreate"); byInputGender = By.CssSelector("input#id_gender2"); byInputFirstName = By.Id("customer_firstname"); byInputLastName = By.Id("customer_lastname"); byInputPassword = By.Id("passwd"); byOptionDayDateBirth = By.XPath("//select[@id='days']/option[2]"); byOptionMonthDateBirth = By.XPath("//select[@id='months']/option[3]"); byOptionYearDateBirth = By.XPath("//*[@id='years']/option[13]"); byInputAddressFirstName = By.Id("firstname"); byInputAddressLastName = By.Id("lastname"); byInputAddress = By.Id("address1"); byInputCity = By.Id("city"); bySelectState = By.CssSelector("#id_state > option:nth-child(2)"); byInputPostalCode = By.Id("postcode"); bySelectCountry = By.CssSelector("#id_country > option:nth-child(2)"); byInputMobilePhone = By.Id("phone_mobile"); byBtnRegister = By.Id("submitAccount"); }
public LoginPO() { _driver = WebHooks.Driver; homeSitePO = new HomeSitePO(); alert = new Alerts(); wait = new WaitLoads(); byInputEmailLogin = By.Id("email"); byInputPassword = By.Id("passwd"); byBtnSignInLogin = By.Id("SubmitLogin"); }
public ForgotPasswordPO() { _driver = WebHooks.Driver; homeSitePO = new HomeSitePO(); loginPO = new LoginPO(); alert = new Alerts(); wait = new WaitLoads(); byLinkForgot = By.CssSelector("#login_form .form-group.lost_password a"); byFormForgot = By.Id("form_forgotpassword"); bySelectRetrievePassword = By.CssSelector("fieldset > p > button"); }