예제 #1
0
 /// <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));
 }
예제 #2
0
 /// <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));
 }
예제 #3
0
 /// <summary>
 /// Navigate to the page.
 /// </summary>
 public void Navigate()
 {
     driver.Navigate().GoToUrl(uri.AbsoluteUri);
     SeleniumTestUtils.WaitForUrl(driver, pageTimeout, uri.AbsoluteUri);
 }