11"""This test is only for Microsoft Edge (Chromium)!"""
22from seleniumbase import BaseCase
3-
4- if __name__ == "__main__" :
5- from pytest import main
6- main ([__file__ , "--edge" , "-s" ])
3+ BaseCase .main (__name__ , __file__ , "--edge" )
74
85
96class EdgeTests (BaseCase ):
@@ -18,14 +15,6 @@ def test_edge(self):
1815 print ("\n This test is NOT designed for Headless Mode!" )
1916 self .skip ('Do NOT use "--headless" with this test!' )
2017 self .open ("edge://settings/help" )
21- self .highlight ('div[role="main"]' )
22- self .highlight ('img[srcset*="logo"]' )
23- self .assert_text ("Microsoft Edge" , 'img[srcset*="logo"] + div' )
24- self .highlight ('img[srcset*="logo"] + div span:nth-of-type(1)' )
25- self .highlight ('img[srcset*="logo"] + div span:nth-of-type(2)' )
26- if self .is_element_visible ('span[aria-live="assertive"]' ):
27- self .highlight ('span[aria-live="assertive"]' , loops = 8 )
28- elif self .is_element_visible ('a[href*="fwlink"]' ):
29- self .highlight ('a[href*="fwlink"]' , loops = 8 )
30- self .highlight ('a[href*="chromium"]' )
31- self .highlight ('a[href*="credits"]' )
18+ self .assert_element ("app-shell" )
19+ self .assert_text ("Microsoft Edge" , "app-shell" )
20+ self .sleep (2 )
0 commit comments