示例#1
0
        public void TestWFMMainPageMenuLinks2(string MenuCode, string DestUrl)
        {
            WFMUtils.LoadWebPage(driver, WFMMainPageURL);
            Assert.That(driver.Url, Is.EqualTo(WFMMainPageURL));

            WFMMainPage WFMMainPageObj = new WFMMainPage(driver);

            driver.FindElement(WFMMainPageObj.NavMenuSelectors[MenuCode]).Click();
            WFMUtils.WaitForCurrPageToFinishLoading(driver);
            Assert.That(driver.Url, Does.StartWith(DestUrl));

            Thread.Sleep(2000);
        }
 public void ClickToHomePage(int MaxWaitTimeInSecs = 10)
 {
     ClickEltByName("HomeLogoLink");
     WFMUtils.WaitForCurrPageToFinishLoading(driver, MaxWaitTimeInSecs);
     Assert.That(driver.Url, Does.StartWith("https://www.wholefoodsmarket.com/"));
 }
示例#3
0
 public void ClickToCovid19UpdateMenu(int MaxWaitTimeInSecs = 10)
 {
     driver.FindElement(NavMenuSelectors["Covid19Update"]).Click();
     WFMUtils.WaitForCurrPageToFinishLoading(driver, MaxWaitTimeInSecs);
     Assert.That(driver.Url, Does.StartWith("https://www.wholefoodsmarket.com/company-info/covid-19-response"));
 }
示例#4
0
 public void ClickToBrowseProductsMenu(int MaxWaitTimeInSecs = 10)
 {
     driver.FindElement(NavMenuSelectors["BrowseProducts"]).Click();
     WFMUtils.WaitForCurrPageToFinishLoading(driver, MaxWaitTimeInSecs);
     Assert.That(driver.Url, Does.StartWith("https://products.wholefoodsmarket.com/"));
 }
示例#5
0
 public void ClickToStoreLocatorMenu(int MaxWaitTimeInSecs = 10)
 {
     driver.FindElement(NavMenuSelectors["StoreLocator"]).Click();
     WFMUtils.WaitForCurrPageToFinishLoading(driver, MaxWaitTimeInSecs);
     Assert.That(driver.Url, Does.StartWith("https://www.wholefoodsmarket.com/stores"));
 }
示例#6
0
 public void ClickToTipsAndIdeasMenu(int MaxWaitTimeInSecs = 10)
 {
     driver.FindElement(NavMenuSelectors["Tips&Ideas"]).Click();
     WFMUtils.WaitForCurrPageToFinishLoading(driver, MaxWaitTimeInSecs);
     Assert.That(driver.Url, Does.StartWith("https://inspiration.wholefoodsmarket.com/"));
 }