コード例 #1
0
 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);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public void Filter(IWebDriver driver, string product, string condition)
 {
     homePage.Search(driver, product);
     seleniumSetMethod.Click(driver, searchPage.FeatureButtonXpath, "Xpath");
     seleniumSetMethod.Click(driver, condition, "Text");
 }
コード例 #4
0
 public void Search(IWebDriver driver, string product)
 {
     seleniumSetMethod.EnterText(driver, homePage.SearchTextBox, product, "Xpath");
     seleniumSetMethod.Click(driver, homePage.SearchButton, "Xpath");
 }