public void GivenIDismissThePopup() { MKHomePage homePage = new MKHomePage(driver); IWebElement popUp = wait.Until(ExpectedConditions.ElementToBeClickable(By.Id(homePage.closePopup.GetAttribute("id")))); popUp.Click(); ScenarioContext.Current["homePage"] = homePage; }
public void GivenIAmOnTheMilesKimballHomepage() { driver.Navigate().GoToUrl(MKHomePage.URL); MKHomePage homePage = new MKHomePage(driver); ScenarioContext.Current["homePage"] = homePage; }