Skip to content

Commit f4b95bd

Browse files
committed
Update an example
1 parent 3ed8401 commit f4b95bd

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

examples/hack_the_planet.py

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -130,25 +130,12 @@ def test_all_your_base_are_belong_to_us(self):
130130
self.highlight("section.crayons-card", loops=7, scroll=False)
131131

132132
self.open("https://store.steampowered.com/")
133+
self.set_text_content('a[href*="steamcommunity.com/"]', " ")
133134
self.set_text_content('div.content a[href*="/about/"]', " ")
134135
self.set_text_content('div.content a[href*="help.steam"]', aybabtu)
135-
self.set_text_content("#foryou_tab a", "ALL")
136-
self.set_text_content("#noteworthy_tab a", "YOUR BASE")
137-
self.set_text_content("#genre_tab a", "ARE")
138-
self.set_text_content('span:contains("Points Shop")', "BELONG")
139-
self.set_text_content('span:contains("News")', "TO")
140-
self.set_text_content('span:contains("Labs")', "US")
141-
self.set_value("input#store_nav_search_term", ayb + " . . . .")
142-
self.highlight('div.content a[href*="help.steam"]', loops=6)
143-
self.highlight("#store_nav_area", loops=2, scroll=False)
144-
self.highlight("#foryou_tab a", loops=1, scroll=False)
145-
self.highlight("#noteworthy_tab a", loops=3, scroll=False)
146-
self.highlight("#genre_tab a", loops=1, scroll=False)
147-
self.highlight('span:contains("BELONG")', loops=1, scroll=False)
148-
self.highlight('span:contains("TO")', loops=1, scroll=False)
149-
self.highlight('span:contains("US")', loops=2, scroll=False)
150-
self.js_click('input[id*="nav_search"]')
151-
self.highlight('input[id*="nav_search"]', loops=6, scroll=False)
136+
zoom_in = '[href*="help.steam"]{zoom: 1.5;-moz-transform: scale(1.5);}'
137+
self.add_css_style(zoom_in)
138+
self.highlight('div.content a[href*="help.steam"]', loops=12)
152139

153140
self.open("https://xkcd.com/286/")
154141
self.set_text_content('a[href="/archive"]', "ALL")

0 commit comments

Comments
 (0)