Skip to content

Commit 32e2add

Browse files
committed
Update example tests
1 parent 11ed934 commit 32e2add

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

examples/github_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ def test_github(self):
1717
self.assert_element("div.repository-content")
1818
self.assert_text("SeleniumBase", "strong a")
1919
self.click('a[title="seleniumbase"]')
20-
self.slow_click('a[title="fixtures"]')
21-
self.assert_element('a[title="base_case.py"]')
20+
self.slow_click('a:contains("fixtures")')
21+
self.assert_element('a:contains("base_case.py")')

examples/hack_the_planet.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,8 @@ def test_all_your_base_are_belong_to_us(self):
8787
self.set_text_content("h1 span:nth-of-type(3)", "BELONG")
8888
self.set_text_content("h1 span:nth-of-type(4)", "TO")
8989
self.set_text_content("h1 span:nth-of-type(5)", "US")
90-
self.type('input[name="q"]', aybabtu.lower())
91-
self.click("h1", scroll=False)
92-
self.highlight('a[href="/pricing"]', loops=5, scroll=False)
93-
self.highlight('input[name="q"]', loops=5, scroll=False)
94-
self.highlight("h1", loops=8, scroll=False)
90+
self.highlight('a[href="/pricing"]', loops=6, scroll=False)
91+
self.highlight("h1.h2-mktg", loops=7, scroll=False)
9592

9693
self.open("https://dev.to/top/infinity")
9794
self.click_if_visible('button[aria-label="Close campaign banner"]')

0 commit comments

Comments
 (0)