Exemple #1
0
        public void SearchFor(string searchTerm)
        {
            IWebElement searchBox = WebDriver.FindElement(By.CssSelector("input[type='text']"));

            searchBox.SendKeys(searchTerm);
            ProdSuggest.FindElement();
            IWebElement Click = WebDriver.FindElement(By.CssSelector("[type='submit']"));

            Click.Click();

            SearchResult.FindElement();
            ProdDesc.FindElement();
            ProdInfo.FindElement();
            ProdReviews.FindElement();
        }
Exemple #2
0
 public Test(IDriver driver, IExcel e, IProdSuggest suggest, ISearchResult result, IProdDescription description, IProdInfo info, IProdReviews reviews)
 {
     Website      = "https://www.amazon.com";
     Driver       = driver;
     WebDriver    = Driver.WebDriver;
     suggest      = new ProdSuggest(e, driver);
     ProdSuggest  = suggest;
     result       = new SearchResult(e, driver);
     SearchResult = result;
     description  = new ProdDescription(e, driver);
     ProdDesc     = description;
     info         = new ProdInfo(e, driver);
     ProdInfo     = info;
     reviews      = new ProdReviews(e, driver);
     ProdReviews  = reviews;
 }