Skip to content

Commit 10a2ff5

Browse files
committed
Update an example test
1 parent bed9dad commit 10a2ff5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

examples/hack_the_planet.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def test_all_your_base_are_belong_to_us(self):
4343
self.set_text_content('#shelf-1 a[href*="airtag"]', "TO")
4444
self.set_text_content('#shelf-1 a[href*="tv"]', "US")
4545
self.set_text_content('#shelf-1 a[href*="homepod"]', ".")
46-
self.set_text_content("#shelf-3 h2", aybabtu + ". ")
46+
self.set_text_content("#shelf-2_section h2", ayb + ". ")
47+
self.set_text_content("#shelf-2_section span", abtu + ". ")
4748
self.highlight("div.rs-shop-subheader", loops=6, scroll=False)
4849
self.highlight("#shelf-1", loops=2, scroll=False)
4950
self.highlight('#shelf-1 a[href*="mac"]', loops=1, scroll=False)
@@ -53,7 +54,8 @@ def test_all_your_base_are_belong_to_us(self):
5354
self.highlight('#shelf-1 a[href*="airpod"]', loops=1, scroll=False)
5455
self.highlight('#shelf-1 a[href*="airtag"]', loops=1, scroll=False)
5556
self.highlight('#shelf-1 a[href*="tv"]', loops=3, scroll=False)
56-
self.highlight("#shelf-3 h2", loops=9, scroll=False)
57+
self.highlight("#shelf-2_section h2", loops=5, scroll=False)
58+
self.highlight("#shelf-2_section span", loops=6, scroll=False)
5759

5860
self.open("https://google.com/ncr")
5961
self.hide_elements("iframe")
@@ -283,15 +285,11 @@ def test_all_your_base_are_belong_to_us(self):
283285
self.highlight("h1", loops=10, scroll=False)
284286

285287
self.open("https://wordpress.com/")
286-
self.set_text_content('a[title="Plans & Pricing"]', aybabtu)
287-
self.set_text_content('a[title="Get Started"]', ayb)
288288
self.set_text_content("p.no-widows", aybabtu)
289289
zoom_out = "h1{zoom: 0.8;-moz-transform: scale(0.8);}"
290290
self.add_css_style(zoom_out)
291291
self.set_text_content("h1.no-widows", aybabtu)
292292
self.set_text_content("a#lpc-button", "Automate with SeleniumBase")
293-
self.highlight('a[title="Plans & Pricing"]', loops=6, scroll=False)
294-
self.highlight('a[title="Get Started"]', loops=4, scroll=False)
295293
self.highlight("h1.no-widows", loops=6, scroll=False)
296294
self.highlight("p.no-widows", loops=4, scroll=False)
297295
self.highlight("a#lpc-button", loops=4, scroll=False)

0 commit comments

Comments
 (0)