File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ <h4>iFrame%20Text<%2Fh4></body>"></iframe>
441
441
442
442
< td >
443
443
< a id ="myLink4 " name ="linkName4 " class ="linkClass "
444
- href ="https://seleniumbase.io/demo_page.html ">
444
+ href ="https://seleniumbase.io/demo_page/ ">
445
445
SeleniumBase Demo Page</ a >
446
446
</ td >
447
447
</ tr >
Original file line number Diff line number Diff line change 4
4
class MyTestClass (BaseCase ):
5
5
6
6
def test_demo_site (self ):
7
- self .open ("https://seleniumbase.io/demo_page.html " )
7
+ self .open ("https://seleniumbase.io/demo_page/ " )
8
8
9
9
# Assert the title of the current web page
10
10
self .assert_title ("Web Testing Page" )
Original file line number Diff line number Diff line change
1
+ """ Test an error page with the "highlight() command, which uses a
2
+ JavaScript animation to point out page objects that are found.
3
+ If an element isn't visible, the test fails with an exception.
4
+ """
5
+ from seleniumbase import BaseCase
6
+
7
+
8
+ class MyTestClass (BaseCase ):
9
+
10
+ def test_error_page (self ):
11
+ self .open ("https://seleniumbase.io/error_page/" )
12
+ self .highlight ('img[alt="500 Error"]' )
13
+ self .highlight ("img#parallax_octocat" )
14
+ self .highlight ("#parallax_error_text" )
15
+ self .highlight ('img[alt*="404"]' )
16
+ self .highlight ("img#octobi_wan_catnobi" )
17
+ self .highlight ("img#speeder" )
You can’t perform that action at this time.
0 commit comments