File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
seleniumbase/console_scripts Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -97,3 +97,6 @@ def test_demo_page(self):
97
97
98
98
# Assert exact text
99
99
self .assert_exact_text ("Demo Page" , "h1" )
100
+
101
+ # Highlight a page element (also assert visibility)
102
+ self .highlight ("h2" )
Original file line number Diff line number Diff line change @@ -94,8 +94,11 @@ def test_demo_site(self):
94
94
# Assert exact text
95
95
self .assert_exact_text ("Demo Page" , "h1" )
96
96
97
+ # Highlight a page element (also assert visibility)
98
+ self .highlight ("h2" )
99
+
97
100
# Assert no broken links (Can be slow if many links)
98
101
# self.assert_no_404_errors()
99
102
100
103
# Assert no JavaScript errors (Can also detect 404s)
101
- self .assert_no_js_errors ()
104
+ # self.assert_no_js_errors()
Original file line number Diff line number Diff line change @@ -376,6 +376,7 @@ def main():
376
376
data .append (' self.assert_link_text("seleniumbase.io")' )
377
377
data .append (' self.click_link("SeleniumBase Demo Page")' )
378
378
data .append (' self.assert_exact_text("Demo Page", "h1")' )
379
+ data .append (' self.highlight("h2")' )
379
380
data .append ("" )
380
381
file_path = "%s/%s" % (dir_name , "test_demo_site.py" )
381
382
file = codecs .open (file_path , "w+" , "utf-8" )
You can’t perform that action at this time.
0 commit comments