@@ -24,32 +24,32 @@ def test_all_your_base_are_belong_to_us(self):
24
24
self .click_if_visible ('button[aria-label="Close"]' )
25
25
self .set_text_content ("h1#firstHeading" , aybabtu )
26
26
self .set_text_content ("#ca-history a" , aybabtu )
27
- self .set_text_content (' #n-mainpage-description a' , "ALL" )
28
- self .set_text_content (' #n-contents a' , "YOUR" )
29
- self .set_text_content (' #n-currentevents a' , "BASE" )
30
- self .set_text_content (' #n-randompage a' , "ARE" )
31
- self .set_text_content (' #n-aboutsite a' , "BELONG" )
32
- self .set_text_content (' #n-contactpage a' , "TO" )
33
- self .set_text_content (' #n-sitesupport a' , "US" )
34
- self .set_text_content (' .tocsection-1 span.toctext' , "ALL" )
35
- self .set_text_content (' .tocsection-2 span.toctext' , "YOUR" )
36
- self .set_text_content (' .tocsection-3 span.toctext' , "BASE" )
37
- self .set_text_content (' .tocsection-4 span.toctext' , "ARE" )
38
- self .set_text_content (' .tocsection-5 span.toctext' , "BELONG" )
39
- self .set_text_content (' .tocsection-6 span.toctext' , "TO" )
40
- self .set_text_content (' .tocsection-7 span.toctext' , "US" )
27
+ self .set_text_content (" #n-mainpage-description a" , "ALL" )
28
+ self .set_text_content (" #n-contents a" , "YOUR" )
29
+ self .set_text_content (" #n-currentevents a" , "BASE" )
30
+ self .set_text_content (" #n-randompage a" , "ARE" )
31
+ self .set_text_content (" #n-aboutsite a" , "BELONG" )
32
+ self .set_text_content (" #n-contactpage a" , "TO" )
33
+ self .set_text_content (" #n-sitesupport a" , "US" )
34
+ self .set_text_content (" .tocsection-1 span.toctext" , "ALL" )
35
+ self .set_text_content (" .tocsection-2 span.toctext" , "YOUR" )
36
+ self .set_text_content (" .tocsection-3 span.toctext" , "BASE" )
37
+ self .set_text_content (" .tocsection-4 span.toctext" , "ARE" )
38
+ self .set_text_content (" .tocsection-5 span.toctext" , "BELONG" )
39
+ self .set_text_content (" .tocsection-6 span.toctext" , "TO" )
40
+ self .set_text_content (" .tocsection-7 span.toctext" , "US" )
41
41
self .highlight ("h1#firstHeading" , loops = 2 , scroll = False )
42
42
self .highlight ("#ca-history a" , loops = 2 , scroll = False )
43
43
self .highlight ("nav#p-navigation" , loops = 2 , scroll = False )
44
44
self .highlight ("div#toc" , loops = 2 , scroll = False )
45
- self .highlight (' .tocsection-1 span.toctext' , loops = 1 , scroll = False )
46
- self .highlight (' .tocsection-2 span.toctext' , loops = 1 , scroll = False )
47
- self .highlight (' .tocsection-3 span.toctext' , loops = 2 , scroll = False )
48
- self .highlight (' .tocsection-4 span.toctext' , loops = 1 , scroll = False )
49
- self .highlight (' .tocsection-5 span.toctext' , loops = 1 , scroll = False )
50
- self .highlight (' .tocsection-6 span.toctext' , loops = 1 , scroll = False )
51
- self .highlight (' .tocsection-7 span.toctext' , loops = 2 , scroll = False )
52
- zoom_in = ' div.thumbinner{zoom: 1.4;-moz-transform: scale(1.4);}'
45
+ self .highlight (" .tocsection-1 span.toctext" , loops = 1 , scroll = False )
46
+ self .highlight (" .tocsection-2 span.toctext" , loops = 1 , scroll = False )
47
+ self .highlight (" .tocsection-3 span.toctext" , loops = 2 , scroll = False )
48
+ self .highlight (" .tocsection-4 span.toctext" , loops = 1 , scroll = False )
49
+ self .highlight (" .tocsection-5 span.toctext" , loops = 1 , scroll = False )
50
+ self .highlight (" .tocsection-6 span.toctext" , loops = 1 , scroll = False )
51
+ self .highlight (" .tocsection-7 span.toctext" , loops = 2 , scroll = False )
52
+ zoom_in = " div.thumbinner{zoom: 1.4;-moz-transform: scale(1.4);}"
53
53
self .add_css_style (zoom_in )
54
54
self .highlight ("div.thumbinner" , loops = 8 , scroll = False )
55
55
@@ -82,7 +82,7 @@ def test_all_your_base_are_belong_to_us(self):
82
82
self .set_text_content ('a[href*="google.com/img"]' , abtu )
83
83
self .set_attributes ('[value="Google Search"]' , "value" , ayb )
84
84
self .set_attributes ('[value="I\' m Feeling Lucky"]' , "value" , abtu )
85
- zoom_in = ' a{zoom: 1.2;-moz-transform: scale(1.2);}'
85
+ zoom_in = " a{zoom: 1.2;-moz-transform: scale(1.2);}"
86
86
self .add_css_style (zoom_in )
87
87
zoom_in = (
88
88
'[value="ALL YOUR BASE"]{zoom: 1.3;-moz-transform: scale(1.3);}'
@@ -104,36 +104,36 @@ def test_all_your_base_are_belong_to_us(self):
104
104
self .highlight ('a[href*="w/signup"]' , loops = 6 , scroll = False )
105
105
106
106
self .open ("https://www.youtube.com/" )
107
- self .set_text_content (' %s(1)' % yt_chip , "ALL" )
108
- self .set_text_content (' %s(2)' % yt_chip , "YOUR" )
109
- self .set_text_content (' %s(3)' % yt_chip , "BASE" )
110
- self .set_text_content (' %s(4)' % yt_chip , "ARE" )
111
- self .set_text_content (' %s(5)' % yt_chip , "BELONG" )
112
- self .set_text_content (' %s(6)' % yt_chip , "TO" )
113
- self .set_text_content (' %s(7)' % yt_chip , "US" )
114
- self .set_text_content (' %s(8)' % yt_chip , "!" )
115
- self .set_text_content (' %s(9)' % yt_chip , "!" )
116
- self .set_text_content (' %s(10)' % yt_chip , "!" )
107
+ self .set_text_content (" %s(1)" % yt_chip , "ALL" )
108
+ self .set_text_content (" %s(2)" % yt_chip , "YOUR" )
109
+ self .set_text_content (" %s(3)" % yt_chip , "BASE" )
110
+ self .set_text_content (" %s(4)" % yt_chip , "ARE" )
111
+ self .set_text_content (" %s(5)" % yt_chip , "BELONG" )
112
+ self .set_text_content (" %s(6)" % yt_chip , "TO" )
113
+ self .set_text_content (" %s(7)" % yt_chip , "US" )
114
+ self .set_text_content (" %s(8)" % yt_chip , "!" )
115
+ self .set_text_content (" %s(9)" % yt_chip , "!" )
116
+ self .set_text_content (" %s(10)" % yt_chip , "!" )
117
117
self .click_if_visible ("#dismiss-button" )
118
118
self .click_if_visible ('button[aria-label="Close"]' )
119
119
self .highlight ("#scroll-container" , loops = 5 , scroll = False )
120
- self .highlight (' %s(1)' % yt_chip , loops = 1 , scroll = False )
121
- self .highlight (' %s(2)' % yt_chip , loops = 1 , scroll = False )
122
- self .highlight (' %s(3)' % yt_chip , loops = 3 , scroll = False )
123
- self .highlight (' %s(4)' % yt_chip , loops = 1 , scroll = False )
124
- self .highlight (' %s(5)' % yt_chip , loops = 1 , scroll = False )
125
- self .highlight (' %s(6)' % yt_chip , loops = 1 , scroll = False )
126
- self .highlight (' %s(7)' % yt_chip , loops = 3 , scroll = False )
120
+ self .highlight (" %s(1)" % yt_chip , loops = 1 , scroll = False )
121
+ self .highlight (" %s(2)" % yt_chip , loops = 1 , scroll = False )
122
+ self .highlight (" %s(3)" % yt_chip , loops = 3 , scroll = False )
123
+ self .highlight (" %s(4)" % yt_chip , loops = 1 , scroll = False )
124
+ self .highlight (" %s(5)" % yt_chip , loops = 1 , scroll = False )
125
+ self .highlight (" %s(6)" % yt_chip , loops = 1 , scroll = False )
126
+ self .highlight (" %s(7)" % yt_chip , loops = 3 , scroll = False )
127
127
self .highlight ("#scroll-container" , loops = 7 , scroll = False )
128
128
129
129
self .open ("https://github.com/features/actions" )
130
130
self .set_text_content ('a[href="/team"]' , ayb )
131
131
self .set_text_content ('a[href="/enterprise"]' , abtu )
132
- self .set_text_content (' h1 span:nth-child(1)' , ayb )
133
- self .set_text_content (' h1 span:nth-of-type(2)' , "ARE" )
134
- self .set_text_content (' h1 span:nth-of-type(3)' , "BELONG" )
135
- self .set_text_content (' h1 span:nth-of-type(4)' , "TO" )
136
- self .set_text_content (' h1 span:nth-of-type(5)' , "US" )
132
+ self .set_text_content (" h1 span:nth-child(1)" , ayb )
133
+ self .set_text_content (" h1 span:nth-of-type(2)" , "ARE" )
134
+ self .set_text_content (" h1 span:nth-of-type(3)" , "BELONG" )
135
+ self .set_text_content (" h1 span:nth-of-type(4)" , "TO" )
136
+ self .set_text_content (" h1 span:nth-of-type(5)" , "US" )
137
137
self .type ('input[name="q"]' , aybabtu .lower ())
138
138
self .click ("h1" , scroll = False )
139
139
self .highlight ("nav" , loops = 5 , scroll = False )
@@ -157,8 +157,8 @@ def test_all_your_base_are_belong_to_us(self):
157
157
self .set_text_content ('aside a[class*="tful"]:nth-child(4)' , aybabtu )
158
158
self .set_text_content ('aside a[class*="tful"]:nth-child(5)' , aybabtu )
159
159
self .set_attribute ("a.crayons-avatar img" , "src" , sb_dashboard_logo )
160
- self .set_text_content (' .profile-preview-card button' , "SeleniumBase" )
161
- self .set_text_content (' h2.crayons-story__title a' , aybabtu )
160
+ self .set_text_content (" .profile-preview-card button" , "SeleniumBase" )
161
+ self .set_text_content (" h2.crayons-story__title a" , aybabtu )
162
162
self .type ('input[name="q"]' , aybabtu )
163
163
self .highlight ('input[name="q"]' , loops = 4 , scroll = False )
164
164
self .highlight ('[aria-label="Primary sidebar"] div div' , scroll = False )
@@ -180,12 +180,12 @@ def test_all_your_base_are_belong_to_us(self):
180
180
self .highlight ("h1" , loops = 6 , scroll = False )
181
181
self .highlight ('a[aria-label*="Try PlayF"]' , loops = 4 , scroll = False )
182
182
self .highlight ('a[aria-label*="Sign in to"]' , loops = 4 , scroll = False )
183
- self .highlight (' button#live-engage-btn' , loops = 6 , scroll = False )
183
+ self .highlight (" button#live-engage-btn" , loops = 6 , scroll = False )
184
184
185
185
self .open ("https://www.snapchat.com/" )
186
186
self .set_text_content ("h1" , ayb )
187
187
self .set_text_content ("form .button-large span span" , abtu )
188
- zoom_in = ' a.button-large span{zoom: 1.2;-moz-transform: scale(1.2);}'
188
+ zoom_in = " a.button-large span{zoom: 1.2;-moz-transform: scale(1.2);}"
189
189
self .add_css_style (zoom_in )
190
190
self .highlight ("h1" , loops = 6 , scroll = False )
191
191
self .highlight ("form .button-large span span" , loops = 8 , scroll = False )
@@ -201,7 +201,7 @@ def test_all_your_base_are_belong_to_us(self):
201
201
self .set_text_content ('span:contains("Labs")' , "US" )
202
202
self .set_value ("input#store_nav_search_term" , ayb + " . . . ." )
203
203
self .highlight ('div.content a[href*="help.steam"]' , loops = 6 )
204
- self .highlight (' #store_nav_area' , loops = 2 , scroll = False )
204
+ self .highlight (" #store_nav_area" , loops = 2 , scroll = False )
205
205
self .highlight ("#foryou_tab a" , loops = 1 , scroll = False )
206
206
self .highlight ("#noteworthy_tab a" , loops = 3 , scroll = False )
207
207
self .highlight ("#genre_tab a" , loops = 1 , scroll = False )
@@ -222,7 +222,7 @@ def test_all_your_base_are_belong_to_us(self):
222
222
self .remove_element ('li:contains("What")' )
223
223
self .remove_element ('li:contains("WI")' )
224
224
self .set_attributes ("#news img" , "src" , sb_banner_logo )
225
- self .set_text_content (' #ctitle' , aybabtu )
225
+ self .set_text_content (" #ctitle" , aybabtu )
226
226
self .set_text_content ('a[rel="prev"]' , "All" )
227
227
self .set_text_content ('a[href*="random"]' , "Your" )
228
228
self .set_text_content ('a[rel="next"]' , "Base" )
@@ -270,8 +270,8 @@ def test_all_your_base_are_belong_to_us(self):
270
270
self .set_text_content ('nav a[href="/partners/"]' , "ARE" )
271
271
self .set_text_content ('nav a[href="/community/"]' , "BELONG" )
272
272
self .set_text_content ('nav a[href="/case-studies/"]' , "TO" )
273
- self .set_text_content (' nav #navbarDropdown' , "US" )
274
- self .set_text_content (' nav #navbarDropdownMenuLink' , "." )
273
+ self .set_text_content (" nav #navbarDropdown" , "US" )
274
+ self .set_text_content (" nav #navbarDropdownMenuLink" , "." )
275
275
if self .is_element_visible ("h1" ):
276
276
self .set_text_content ("h1" , aybabtu )
277
277
self .highlight ("nav ul.navbar-nav" , loops = 3 , scroll = False )
@@ -281,9 +281,9 @@ def test_all_your_base_are_belong_to_us(self):
281
281
self .highlight ('nav a[href="/partners/"]' , loops = 1 , scroll = False )
282
282
self .highlight ('nav a[href="/community/"]' , loops = 1 , scroll = False )
283
283
self .highlight ('nav a[href="/case-studies/"]' , loops = 1 , scroll = False )
284
- self .highlight (' nav #navbarDropdown' , loops = 2 , scroll = False )
284
+ self .highlight (" nav #navbarDropdown" , loops = 2 , scroll = False )
285
285
if self .is_element_visible ("h1" ):
286
- self .highlight ('h1' , loops = 6 , scroll = False )
286
+ self .highlight ("h1" , loops = 6 , scroll = False )
287
287
288
288
self .open ("https://www.selenium.dev/" )
289
289
if self .is_element_visible ('button[data-dismiss="alert"] span' ):
@@ -298,7 +298,7 @@ def test_all_your_base_are_belong_to_us(self):
298
298
self .set_text_content ('li a:contains("English")' , "US" )
299
299
self .set_text_content ("div.lead" , aybabtu )
300
300
self .set_text_content ("h2" , aybabtu )
301
- zoom_in = ' div.lead{zoom: 1.25;-moz-transform: scale(1.25);}'
301
+ zoom_in = " div.lead{zoom: 1.25;-moz-transform: scale(1.25);}"
302
302
self .add_css_style (zoom_in )
303
303
self .highlight ("div#main_navbar" , loops = 1 , scroll = False )
304
304
self .highlight ('li a:contains("ALL")' , loops = 1 , scroll = False )
@@ -401,7 +401,7 @@ def test_all_your_base_are_belong_to_us(self):
401
401
402
402
self .open ("https://pragprog.com/" )
403
403
self .set_text_content ("header p" , aybabtu )
404
- zoom_in = ' header p{zoom: 1.35;-moz-transform: scale(1.35);}'
404
+ zoom_in = " header p{zoom: 1.35;-moz-transform: scale(1.35);}"
405
405
self .add_css_style (zoom_in )
406
406
self .highlight ("header p" , loops = 10 , scroll = False )
407
407
0 commit comments