Update an example test

This commit is contained in:
Michael Mintz 2019-12-11 02:34:27 -05:00
parent 23df6c7b5f
commit b8b604658c
1 changed files with 1 additions and 4 deletions

View File

@ -8,10 +8,7 @@ class FileUploadButtonTests(BaseCase):
def test_file_upload_button(self):
self.open("https://www.w3schools.com/jsref/tryit.asp"
"?filename=tryjsref_fileupload_get")
if not self.ad_block_on:
# If ad-blocking is disabled, block anyway.
self.wait_for_element('[id*="google_ads"]')
self.remove_elements('[id*="google_ads"]')
self.ad_block()
self.switch_to_frame('iframeResult')
self.add_css_style(
'input[type="file"]{zoom: 1.5;-moz-transform: scale(1.5);}')