@@ -77,13 +77,15 @@ def test_all_your_base_are_belong_to_us(self):
77
77
self .set_text_content ('a[href*="google.com/img"]' , abtu )
78
78
self .set_attributes ('[value="Google Search"]' , "value" , ayb )
79
79
self .set_attributes ('[value="I\' m Feeling Lucky"]' , "value" , abtu )
80
+ self .hide_elements ("iframe" )
80
81
zoom_in = "a{zoom: 1.2;-moz-transform: scale(1.2);}"
81
82
self .add_css_style (zoom_in )
82
83
zoom_in = (
83
84
'[value="ALL YOUR BASE"]{zoom: 1.3;-moz-transform: scale(1.3);}'
84
85
'[value="ARE BELONG TO US"]{zoom: 1.3;-moz-transform: scale(1.3);}'
85
86
)
86
87
self .add_css_style (zoom_in )
88
+ self .hide_elements ("iframe" )
87
89
self .highlight ('a[href*="about.google"]' , loops = 3 )
88
90
self .highlight ('a[href*="store.google"]' , loops = 3 )
89
91
self .highlight ('a[href*="mail.google.com"]' , loops = 3 )
@@ -136,6 +138,8 @@ def test_all_your_base_are_belong_to_us(self):
136
138
self .highlight ("h1" , loops = 8 , scroll = False )
137
139
138
140
self .open ("https://dev.to/top/infinity" )
141
+ self .hide_elements ("#js-hero-banner" )
142
+ self .hide_elements ('main > div:contains("Pinned")' )
139
143
self .click_if_visible ('button[aria-label="Close campaign banner"]' )
140
144
self .set_text_content ('nav a[data-text="Relevant"]' , "ALL" )
141
145
self .set_text_content ('nav a[data-text="Latest"]' , "YOUR" )
@@ -153,7 +157,8 @@ def test_all_your_base_are_belong_to_us(self):
153
157
self .set_text_content ('aside a[class*="tful"]:nth-child(5)' , aybabtu )
154
158
self .set_attribute ("a.crayons-avatar img" , "src" , sb_dashboard_logo )
155
159
self .set_text_content (".profile-preview-card button" , "SeleniumBase" )
156
- self .set_text_content ("h2.crayons-story__title a" , aybabtu )
160
+ if self .is_element_visible ('h2 a[href*="simonh"]' ):
161
+ self .set_text_content ('h2 a[href*="simonh"]' , aybabtu )
157
162
self .type ('input[name="q"]' , aybabtu )
158
163
self .highlight ('input[name="q"]' , loops = 4 , scroll = False )
159
164
self .highlight ('[aria-label="Primary sidebar"] div div' , scroll = False )
@@ -163,9 +168,9 @@ def test_all_your_base_are_belong_to_us(self):
163
168
self .highlight ('nav a[data-text="Week"]' , loops = 1 , scroll = False )
164
169
self .highlight ('nav a[data-text="Month"]' , loops = 1 , scroll = False )
165
170
self .highlight ('nav a[data-text="Year"]' , loops = 1 , scroll = False )
166
- self .highlight ('nav a[data-text="Infinity"]' , loops = 2 , scroll = False )
167
- self .highlight ( 'aside[id *="sidebar"] section' , loops = 5 , scroll = False )
168
- self .highlight ("div.crayons-story__body" , loops = 7 , scroll = False )
171
+ self .highlight ('nav a[data-text="Infinity"]' , loops = 3 , scroll = False )
172
+ if self .is_element_visible ( 'h2 a[href *="simonh"]' ):
173
+ self .highlight ('h2 a[href*="simonh"]' , loops = 7 , scroll = False )
169
174
170
175
self .open ("https://azure.microsoft.com/en-us/services/playfab/" )
171
176
self .set_text_content ("h1" , aybabtu )
@@ -206,7 +211,7 @@ def test_all_your_base_are_belong_to_us(self):
206
211
self .remove_element ('li:contains("Books")' )
207
212
self .remove_element ('li:contains("What")' )
208
213
self .remove_element ('li:contains("WI")' )
209
- self .set_attributes ("#news img" , "src" , sb_banner_logo )
214
+ self .set_attributes ("#countdown img" , "src" , sb_banner_logo )
210
215
self .set_text_content ("#ctitle" , aybabtu )
211
216
self .set_text_content ('a[rel="prev"]' , "All" )
212
217
self .set_text_content ('a[href*="random"]' , "Your" )
@@ -240,6 +245,7 @@ def test_all_your_base_are_belong_to_us(self):
240
245
self .set_text_content ('a[prettyslug="connect-tools"]' , "ARE" )
241
246
self .set_text_content ('a[prettyslug="administration"]' , "BELONG" )
242
247
self .set_text_content ('a[prettyslug="tutorials"]' , "TO US" )
248
+ self .set_text_content ("h1.article_title" , aybabtu )
243
249
self .highlight ("h1" , loops = 4 , scroll = False )
244
250
self .highlight ("div#global_menu" , loops = 2 , scroll = False )
245
251
self .highlight ('a[prettyslug*="g-started"]' , loops = 1 , scroll = False )
@@ -248,6 +254,7 @@ def test_all_your_base_are_belong_to_us(self):
248
254
self .highlight ('a[prettyslug="connect-tools"]' , loops = 1 , scroll = False )
249
255
self .highlight ('a[prettyslug="administration"]' , loops = 1 , scroll = False )
250
256
self .highlight ('a[prettyslug="tutorials"]' , loops = 2 , scroll = False )
257
+ self .highlight ("h1.article_title" , loops = 5 , scroll = False )
251
258
252
259
self .open ("https://kubernetes.io/" )
253
260
self .set_text_content ('nav a[href="/docs/"]' , "ALL" )
@@ -284,6 +291,8 @@ def test_all_your_base_are_belong_to_us(self):
284
291
self .set_text_content ('li a:contains("English")' , "US" )
285
292
self .set_text_content ("div.lead" , aybabtu )
286
293
self .set_text_content ("h2" , aybabtu )
294
+ if self .is_element_visible ('button[data-dismiss="alert"] span' ):
295
+ self .js_click ('button[data-dismiss="alert"] span' , scroll = False )
287
296
zoom_in = "div.lead{zoom: 1.25;-moz-transform: scale(1.25);}"
288
297
self .add_css_style (zoom_in )
289
298
self .highlight ("div#main_navbar" , loops = 1 , scroll = False )
@@ -324,10 +333,12 @@ def test_all_your_base_are_belong_to_us(self):
324
333
self .set_text_content ('a[title="Plans & Pricing"]' , aybabtu )
325
334
self .set_text_content ('a[title="Get Started"]' , ayb )
326
335
self .set_text_content ("p.no-widows" , aybabtu )
336
+ self .set_text_content ("h1.no-widows" , aybabtu )
327
337
self .set_text_content ("a#lpc-button" , "Automate with SeleniumBase" )
328
338
self .highlight ('a[title="Plans & Pricing"]' , loops = 6 , scroll = False )
329
339
self .highlight ('a[title="Get Started"]' , loops = 4 , scroll = False )
330
- self .highlight ("p.no-widows" , loops = 8 , scroll = False )
340
+ self .highlight ("h1.no-widows" , loops = 6 , scroll = False )
341
+ self .highlight ("p.no-widows" , loops = 4 , scroll = False )
331
342
self .highlight ("a#lpc-button" , loops = 4 , scroll = False )
332
343
333
344
self .open ("https://seleniumbase.com/" )
@@ -374,15 +385,6 @@ def test_all_your_base_are_belong_to_us(self):
374
385
self .highlight ("#nav-about h3" , loops = 5 , scroll = False )
375
386
self .highlight ("#nav-documentation h3" , loops = 6 , scroll = False )
376
387
377
- self .open ("https://teamtreehouse.com/teams" )
378
- self .set_text_content ("li.nav-item-free-trial" , aybabtu )
379
- self .set_text_content ("h1" , aybabtu )
380
- self .set_text_content ("h2" , aybabtu )
381
- self .set_text_content ("p.homepage-signup-form-banner" , aybabtu )
382
- self .highlight ("li.nav-item-free-trial" , loops = 6 , scroll = False )
383
- self .highlight ("h1" , loops = 6 , scroll = False )
384
- self .highlight ('p[class*="signup-form"]' , loops = 6 , scroll = False )
385
-
386
388
self .open ("https://pragprog.com/" )
387
389
self .set_text_content ("header p" , aybabtu )
388
390
zoom_in = "header p{zoom: 1.35;-moz-transform: scale(1.35);}"
0 commit comments