File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,15 @@ public void ShouldReturnWhenGettingAUrlThatDoesNotResolve()
58
58
}
59
59
}
60
60
61
+ [ Test ]
62
+ [ IgnoreBrowser ( Browser . IE , "IE happily will navigate to invalid URLs" ) ]
63
+ [ IgnoreBrowser ( Browser . IPhone ) ]
64
+ [ IgnoreBrowser ( Browser . Safari , "Hangs Safari driver" ) ]
65
+ public void ShouldThrowIfUrlIsMalformed ( )
66
+ {
67
+ driver . Url = "www.test.com" ;
68
+ }
69
+
61
70
[ Test ]
62
71
[ IgnoreBrowser ( Browser . IPhone ) ]
63
72
[ IgnoreBrowser ( Browser . Safari , "Hangs Safari driver" ) ]
@@ -67,6 +76,14 @@ public void ShouldReturnWhenGettingAUrlThatDoesNotConnect()
67
76
driver . Url = "http://localhost:3001" ;
68
77
}
69
78
79
+ [ Test ]
80
+ public void ShouldReturnUrlOnNotExistedPage ( )
81
+ {
82
+ string url = EnvironmentManager . Instance . UrlBuilder . WhereIs ( "not_existed_page.html" ) ;
83
+ driver . Url = url ;
84
+ Assert . AreEqual ( url , driver . Url ) ;
85
+ }
86
+
70
87
[ Test ]
71
88
public void ShouldBeAbleToLoadAPageWithFramesetsAndWaitUntilAllFramesAreLoaded ( )
72
89
{
You can’t perform that action at this time.
0 commit comments