@@ -91,10 +91,11 @@ def test_all_your_base_are_belong_to_us(self):
9191 self .open ("https://dev.to/top/infinity" )
9292 self .click_if_visible ('button[aria-label="Close campaign banner"]' )
9393 self .click_if_visible ('svg[aria-label="Close campaign banner"]' )
94- try :
94+ self .click_if_visible ('button[id*="sponsorship-close-trigger"]' )
95+ if self .is_element_visible ('main div:contains("Pinned")' ):
9596 self .hide_elements ('main div:contains("Pinned")' )
96- except Exception :
97- pass
97+ if self . is_element_visible ( '[data-type-of="in_house"]' ) :
98+ self . hide_elements ( '[data-type-of="in_house"]' )
9899 self .set_text_content ('nav a[data-text="Relevant"]' , "ALL" )
99100 self .set_text_content ('nav a[data-text="Latest"]' , "YOUR" )
100101 self .set_text_content ('nav a[data-text="Top"]' , "BASE" )
@@ -124,8 +125,6 @@ def test_all_your_base_are_belong_to_us(self):
124125 self .highlight ('nav a[data-text="Month"]' , loops = 1 , scroll = False )
125126 self .highlight ('nav a[data-text="Year"]' , loops = 1 , scroll = False )
126127 self .highlight ('nav a[data-text="Infinity"]' , loops = 3 , scroll = False )
127- if self .is_element_visible ('h2 a[href*="simonh"]' ):
128- self .highlight ('h2 a[href*="simonh"]' , loops = 7 , scroll = False )
129128 if self .is_element_visible ('main h2 a[id*="article"]' ):
130129 self .highlight ('main h2 a[id*="article"]' , loops = 7 , scroll = False )
131130 self .highlight ("section.crayons-card" , loops = 7 , scroll = False )
0 commit comments