public override void PerformTest() { CurrentCriteria = Navigate.GoToUrl(Navigate.SetEnvironment(ThisEnv)); CheckPassCriterion("Go To Url expects: The Url page to have loaded", CurrentCriteria); CurrentCriteria = Navigate.PerformSearch("Quack-a-Doodle Do IMDb"); CheckPassCriterion("Perform Search expects: To have produced search results", CurrentCriteria); CurrentCriteria = Navigate.GotoSearchResultLink("IMDb"); CheckPassCriterion("Goto First Link In Results expects: To be on the page specified", CurrentCriteria); Thread.Sleep(3000); // just to let the user see the result }
public static void GoToUrl(string url) { Navigate.GoToUrl(new Uri(url)); }
public override void Go() { Navigate.GoToUrl("http://www.google.com"); }