/// <summary> /// Click on the 'Used Cars for Sale' menu item. /// </summary> /// <returns> /// A reference to the initial 'Cars For Sale' page object. /// </returns> public CarsForSale1Page ClickUsedCarsForSaleMenu() { SeleniumTestUtils.Click(driver, elementTimeout, usedCarsForSaleMenu); SeleniumTestUtils.WaitForUrl(driver, pageTimeout, TestUtils.AppendUrl(GetBaseUrl(), PageFactory.CARS_FOR_SALE1)); return((CarsForSale1Page)PageFactory.Instance.GetPage(driver, GetBaseUrl(), PageFactory.CARS_FOR_SALE1, pageTimeout, elementTimeout)); }
/// <summary> /// Click the page next button. /// </summary> /// <returns> /// A reference to the next page object. /// </returns> public Page Click_Next_Button() { SeleniumTestUtils.Click(driver, elementTimeout, nextButton); SeleniumTestUtils.WaitForUrl(driver, pageTimeout, TestUtils.AppendUrl(GetBaseUrl(), PageFactory.CARS_FOR_SALE2)); return((CarsForSale2Page)PageFactory.Instance.GetPage(driver, GetBaseUrl(), PageFactory.CARS_FOR_SALE2, pageTimeout, elementTimeout)); }
/// <summary> /// Navigate to the page. /// </summary> public void Navigate() { driver.Navigate().GoToUrl(uri.AbsoluteUri); SeleniumTestUtils.WaitForUrl(driver, pageTimeout, uri.AbsoluteUri); }