// Login in public void LogIn() { LoginButton.Click(); LoginName.SendKeys("guy"); LoginPassword.SendKeys("guy12345"); LoginSubmitButton.Click(); }
public void Create_AccountPage() { Fname.SendKeys("Testing"); Lname.SendKeys("Guru"); Email.SendKeys("*****@*****.**"); TelePhone.SendKeys("07777777"); Fax.SendKeys("012345"); Company.SendKeys("IT_Tech"); Address1.SendKeys("BFD"); Address2.SendKeys("city road"); City.SendKeys("Leeds"); //DropDown list for Country SelectElement DropDown2 = new SelectElement(Country_UK); DropDown2.SelectByText("United Kingdom"); BasePage.driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); //DropDown list for State/Region SelectElement DropDown1 = new SelectElement(RegionState); DropDown1.SelectByText("West Yorkshire"); BasePage.driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); ZipCode.SendKeys("12345"); CountryDropDownClick.Click(); //Country_UK.Click(); LoginName.SendKeys("tguru2713"); Password.SendKeys("123qwe"); ConfirmPass.SendKeys("123qwe"); Suscribe.Click(); TermsCondition.Click(); ContinueBtn1.Click(); ContinueBtn2.Click(); //Assert.IsTrue }
public void ExistingUsers() { LoginName.SendKeys("tguru2713"); Password.SendKeys("123qwe"); LoginButton.Click(); }