We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 965a6f2 commit b18981aCopy full SHA for b18981a
examples/upload_file_test.py
@@ -8,8 +8,10 @@ class FileUploadButtonTests(BaseCase):
8
def test_file_upload_button(self):
9
self.open("https://www.w3schools.com/jsref/tryit.asp"
10
"?filename=tryjsref_fileupload_get")
11
- self.wait_for_element('[id*="google_ads"]')
12
- self.remove_elements('[id*="google_ads"]')
+ if not self.ad_block_on:
+ # If ad-blocking is disabled, block anyway.
13
+ self.wait_for_element('[id*="google_ads"]')
14
+ self.remove_elements('[id*="google_ads"]')
15
self.switch_to_frame('iframeResult')
16
self.add_css_style(
17
'input[type="file"]{zoom: 1.5;-moz-transform: scale(1.5);}')
0 commit comments