コード例 #1
0
        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
        }
コード例 #2
0
ファイル: WebDriver.cs プロジェクト: vuluuLG/SeleniumCSharp
 public static void GoToUrl(string url)
 {
     Navigate.GoToUrl(new Uri(url));
 }
コード例 #3
0
 public override void Go()
 {
     Navigate.GoToUrl("http://www.google.com");
 }