@@ -59,8 +59,10 @@ def test_all_your_base_are_belong_to_us(self):
59
59
60
60
self .open ("https://google.com/ncr" )
61
61
self .hide_elements ("iframe" )
62
- self .set_text_content ('a[href*="about.google"]' , ayb )
63
- self .set_text_content ('a[href*="store.google"]' , abtu )
62
+ if self .is_element_visible ('a[href*="about.google"]' ):
63
+ self .set_text_content ('a[href*="about.google"]' , ayb )
64
+ if self .is_element_visible ('a[href*="store.google"]' ):
65
+ self .set_text_content ('a[href*="store.google"]' , abtu )
64
66
self .set_text_content ('a[href*="mail.google.com"]' , ayb )
65
67
self .set_text_content ('a[href*="google.com/img"]' , abtu )
66
68
self .set_attributes ('[value="Google Search"]' , "value" , ayb )
@@ -74,8 +76,10 @@ def test_all_your_base_are_belong_to_us(self):
74
76
)
75
77
self .add_css_style (zoom_in )
76
78
self .hide_elements ("iframe" )
77
- self .highlight ('a[href*="about.google"]' , loops = 3 )
78
- self .highlight ('a[href*="store.google"]' , loops = 3 )
79
+ if self .is_element_visible ('a[href*="about.google"]' ):
80
+ self .highlight ('a[href*="about.google"]' , loops = 3 )
81
+ if self .is_element_visible ('a[href*="store.google"]' ):
82
+ self .highlight ('a[href*="store.google"]' , loops = 3 )
79
83
self .highlight ('a[href*="mail.google.com"]' , loops = 3 )
80
84
self .highlight ('a[href*="google.com/img"]' , loops = 3 )
81
85
self .highlight ('form[role="search"]' , loops = 8 )
0 commit comments