Skip to content

Commit 89bf34e

Browse files
committed
Update examples
1 parent 355fad6 commit 89bf34e

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

examples/offline_examples/demo_page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ <h4>iFrame%20Text<%2Fh4></body>"></iframe>
441441

442442
<td>
443443
<a id="myLink4" name="linkName4" class="linkClass"
444-
href="https://seleniumbase.io/demo_page.html">
444+
href="https://seleniumbase.io/demo_page/">
445445
SeleniumBase Demo Page</a>
446446
</td>
447447
</tr>

examples/test_demo_site.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
class MyTestClass(BaseCase):
55

66
def test_demo_site(self):
7-
self.open("https://seleniumbase.io/demo_page.html")
7+
self.open("https://seleniumbase.io/demo_page/")
88

99
# Assert the title of the current web page
1010
self.assert_title("Web Testing Page")

examples/test_error_page.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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")

0 commit comments

Comments
 (0)