public string Email(IWebDriver driver, string mailId) { seleniumSetMethod.Click(driver, homePage.AccountsAndListsXpath, "Xpath"); driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); seleniumSetMethod.EnterText(driver, loginPage.EmailTextBoxXpath, mailId, "Xpath"); seleniumSetMethod.Click(driver, loginPage.EmailContinueId, "Id"); return(driver.FindElement(By.XPath(loginPage.PasswordTextXpath)).Text); }
public string SelectProduct(IWebDriver driver, string product) { homePage.Search(driver, product); driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10); string productName = driver.FindElement(By.XPath(searchPage.FirstProductNameInResultXpath)).Text; seleniumSetMethod.Click(driver, searchPage.FirstProductNameInResultXpath, "Xpath"); return(productName); }
public void Filter(IWebDriver driver, string product, string condition) { homePage.Search(driver, product); seleniumSetMethod.Click(driver, searchPage.FeatureButtonXpath, "Xpath"); seleniumSetMethod.Click(driver, condition, "Text"); }
public void Search(IWebDriver driver, string product) { seleniumSetMethod.EnterText(driver, homePage.SearchTextBox, product, "Xpath"); seleniumSetMethod.Click(driver, homePage.SearchButton, "Xpath"); }