@@ -138,7 +138,7 @@ def test_all_your_base_are_belong_to_us(self):
138
138
139
139
self .open ("https://dev.to/top/infinity" )
140
140
self .click_if_visible ('button[aria-label="Close campaign banner"]' )
141
- self .set_text_content ('nav a[data-text="Feed "]' , "ALL" )
141
+ self .set_text_content ('nav a[data-text="Relevant "]' , "ALL" )
142
142
self .set_text_content ('nav a[data-text="Latest"]' , "YOUR" )
143
143
self .set_text_content ('nav a[data-text="Top"]' , "BASE" )
144
144
self .set_text_content ('nav a[data-text="Week"]' , "ARE" )
@@ -158,7 +158,7 @@ def test_all_your_base_are_belong_to_us(self):
158
158
self .type ('input[name="q"]' , aybabtu )
159
159
self .highlight ('input[name="q"]' , loops = 4 , scroll = False )
160
160
self .highlight ('[aria-label="Primary sidebar"] div div' , scroll = False )
161
- self .highlight ('nav a[data-text="Feed "]' , loops = 1 , scroll = False )
161
+ self .highlight ('nav a[data-text="Relevant "]' , loops = 1 , scroll = False )
162
162
self .highlight ('nav a[data-text="Latest"]' , loops = 1 , scroll = False )
163
163
self .highlight ('nav a[data-text="Top"]' , loops = 2 , scroll = False )
164
164
self .highlight ('nav a[data-text="Week"]' , loops = 1 , scroll = False )
@@ -283,7 +283,8 @@ def test_all_your_base_are_belong_to_us(self):
283
283
self .set_text_content ('nav a[href="/case-studies/"]' , "TO" )
284
284
self .set_text_content ('nav #navbarDropdown' , "US" )
285
285
self .set_text_content ('nav #navbarDropdownMenuLink' , "." )
286
- self .set_text_content ("h1" , aybabtu )
286
+ if self .is_element_visible ("h1" ):
287
+ self .set_text_content ("h1" , aybabtu )
287
288
self .highlight ("nav ul.navbar-nav" , loops = 3 , scroll = False )
288
289
self .highlight ('nav a[href="/docs/"]' , loops = 1 , scroll = False )
289
290
self .highlight ('nav a[href="/blog/"]' , loops = 1 , scroll = False )
@@ -292,7 +293,8 @@ def test_all_your_base_are_belong_to_us(self):
292
293
self .highlight ('nav a[href="/community/"]' , loops = 1 , scroll = False )
293
294
self .highlight ('nav a[href="/case-studies/"]' , loops = 1 , scroll = False )
294
295
self .highlight ('nav #navbarDropdown' , loops = 2 , scroll = False )
295
- self .highlight ('h1' , loops = 6 , scroll = False )
296
+ if self .is_element_visible ("h1" ):
297
+ self .highlight ('h1' , loops = 6 , scroll = False )
296
298
297
299
self .open ("https://www.selenium.dev/" )
298
300
self .set_attributes ("a.dropdown-toggle" , "class" , "nav-link" )
0 commit comments