Skip to content

Commit accce50

Browse files
committed
Update example tests
1 parent ef9eced commit accce50

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

examples/hack_the_planet.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,6 @@ def test_all_your_base_are_belong_to_us(self):
175175
self.highlight('a[aria-label*="Try PlayF"]', loops=4, scroll=False)
176176
self.highlight('a[aria-label*="Sign in to"]', loops=6, scroll=False)
177177

178-
self.open("https://www.snapchat.com/")
179-
self.set_text_content("h1", aybabtu)
180-
zoom_out = "h1{zoom: 0.85;-moz-transform: scale(0.85);}"
181-
self.add_css_style(zoom_out)
182-
self.highlight("h1", loops=8, scroll=False)
183-
184178
self.open("https://store.steampowered.com/")
185179
self.set_text_content('div.content a[href*="/about/"]', " ")
186180
self.set_text_content('div.content a[href*="help.steam"]', aybabtu)

examples/parameterized_test.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class GoogleTests(BaseCase):
77
[
88
["Download Python", "Download Python", "img.python-logo"],
99
["Wikipedia", "www.wikipedia.org", "img.central-featured-logo"],
10-
["SeleniumBase GitHub.com", "SeleniumBase", 'img[title*="Sele"]'],
10+
["SeleniumBase.io Docs", "SeleniumBase", 'img[alt*="SeleniumB"]'],
1111
]
1212
)
1313
def test_parameterized_google_search(self, search_key, expected_text, img):
@@ -18,7 +18,5 @@ def test_parameterized_google_search(self, search_key, expected_text, img):
1818
self.click('a:contains("%s")' % expected_text)
1919
self.assert_element(img)
2020
if "SeleniumBase" in search_key:
21-
self.click('img[alt="SeleniumBase Docs"]')
22-
self.assert_element('[title="SeleniumBase Docs"]')
23-
self.click('a:contains("Features List")')
24-
self.assert_text("Features List", "h1")
21+
self.click('img[alt="SeleniumBase"]')
22+
self.assert_element('img[title="SeleniumBase"]')

examples/test_docs_site.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
class DocsSiteTests(BaseCase):
55
def test_docs(self):
66
self.open("https://seleniumbase.io/")
7-
self.delete_all_cookies()
87
self.assert_text("SeleniumBase", "h1")
98
self.js_click('a[href="help_docs/features_list/"]')
109
self.assert_exact_text("Features List", "h1")
@@ -14,13 +13,13 @@ def test_docs(self):
1413
self.assert_exact_text("Command Line Options", "h1")
1514
self.js_click('a[href="../../examples/example_logs/ReadMe/"]')
1615
self.assert_exact_text("Dashboard / Reports", "h1")
17-
self.js_click('[href="../../../seleniumbase/console_scripts/ReadMe/"]')
16+
self.js_click('a[href*="/seleniumbase/console_scripts/ReadMe/"]')
1817
self.assert_exact_text("Console Scripts", "h1")
1918
self.js_click('a[href="../../../help_docs/syntax_formats/"]')
2019
self.assert_exact_text("Syntax Formats", "h1")
2120
self.js_click('a[href="../recorder_mode/"]')
2221
self.assert_exact_text("Recorder Mode", "h1")
2322
self.js_click('a[href="../method_summary/"]')
2423
self.assert_exact_text("API Reference", "h1")
25-
self.js_click('img[alt="logo"]')
24+
self.click('img[alt="logo"]')
2625
self.assert_text("SeleniumBase", "h1")

0 commit comments

Comments
 (0)