public void SearchForKobitonOnAndroid() { try { testPage = new GooglePage(capabilities.GetAndroidWebDesiredCapability()); Console.WriteLine("#### should be able to search for 'Kobiton' using google on Android\n"); testPage.Login(); Helpers.Pause(2); Assert.Contains(searchFor, testPage.GetDriverTitle()); } finally { if (testPage != null) { testPage.CleanUp(); } } }
public WebTest() { capabilities = new Capabilities(); driver = new Driver(); testPage = new HerokuPage(driver.CreateWebDriver(capabilities.GetAndroidWebDesiredCapability())); }