Update the file-upload test

This commit is contained in:
Michael Mintz 2019-12-07 02:01:54 -05:00
parent 965a6f2c53
commit b18981a42f
1 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,8 @@ 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.switch_to_frame('iframeResult')