Skip to content

Commit e7b202f

Browse files
committed
Update an example test
1 parent 44b66bd commit e7b202f

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

examples/hack_the_planet.py

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -179,30 +179,12 @@ def test_all_your_base_are_belong_to_us(self):
179179
self.highlight('button#live-engage-btn', loops=6, scroll=False)
180180

181181
self.open("https://www.snapchat.com/")
182-
self.set_text_content('a[href*="download"]', "ALL")
183-
self.set_text_content('a[href*="spotlight"]', "YOUR")
184-
self.set_text_content('a[href="https://story.snapchat.com"]', "BASE")
185-
self.set_text_content('a[href*="map"]', "ARE")
186-
self.set_text_content('a[href*="forbusiness"]', "BELONG")
187-
self.set_text_content('a[href*="spectacles"]', "TO")
188-
self.set_text_content('a[href="/create"]', "US")
189-
self.set_text_content('a[href*="lensstudio"]', ".")
190-
self.set_text_content('a[href*="kit"]', ".")
191-
self.set_text_content('a[href*="snapcodes"]', ".")
192182
self.set_text_content("h1", ayb)
193-
self.set_text_content("a.button-large span > span", abtu)
183+
self.set_text_content("form .button-large span span", abtu)
194184
zoom_in = 'a.button-large span{zoom: 1.2;-moz-transform: scale(1.2);}'
195185
self.add_css_style(zoom_in)
196-
self.highlight("header", loops=1)
197-
self.highlight('a[href*="download"]', loops=1)
198-
self.highlight('a[href*="spotlight"]', loops=1)
199-
self.highlight('a[href="https://story.snapchat.com"]', loops=2)
200-
self.highlight('a[href*="map"]', loops=1, scroll=False)
201-
self.highlight('a[href*="forbusiness"]', loops=1)
202-
self.highlight('a[href*="spectacles"]', loops=1)
203-
self.highlight('a[href="/create"]', loops=2)
204-
self.highlight("h1", loops=4, scroll=False)
205-
self.highlight("a.button-large span > span", loops=5, scroll=False)
186+
self.highlight("h1", loops=6, scroll=False)
187+
self.highlight("form .button-large span span", loops=8, scroll=False)
206188

207189
self.open("https://store.steampowered.com/")
208190
self.set_text_content('div.content a[href*="/about/"]', " ")

0 commit comments

Comments
 (0)