File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ def test_shadow_root(self):
1111 message = "Skipping test in Recorder Mode."
1212 print (message )
1313 self .skip (message )
14- elif self .browser == "safari" :
14+ elif not self .is_chromium () :
1515 self .open_if_not_url ("about:blank" )
16- message = "Skipping test for using Safari. "
16+ message = "This test is only for Chromium browsers! "
1717 print (message )
1818 self .skip (message )
1919 self .open ("https://seleniumbase.io/other/shadow_dom" )
Original file line number Diff line number Diff line change 44
55class CDPNetworkBlockingTests (BaseCase ):
66 def test_cdp_network_blocking (self ):
7- if not self .is_chromium :
8- self .skip ("This test is only for Chromium browsers!" )
7+ self .open ("about:blank" )
8+ if not self .is_chromium ():
9+ message = "This test is only for Chromium browsers!"
10+ print (message )
11+ self .skip (message )
912 self .execute_cdp_cmd (
1013 'Network.setBlockedURLs' , {"urls" : [
1114 "*googlesyndication.com*" ,
@@ -24,5 +27,4 @@ def test_cdp_network_blocking(self):
2427 source = self .get_page_source ()
2528 self .assert_true ("doubleclick.net" not in source )
2629 self .assert_true ("google-analytics.com" not in source )
27- if self .demo_mode :
28- self .post_message ("Blocking was successful!" )
30+ self .post_message ("Blocking was successful!" )
You can’t perform that action at this time.
0 commit comments