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/")); }
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")); }
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/")); }
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")); }
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/")); }