Update test_workflow.py

This commit is contained in:
Leon 2023-06-03 01:32:04 +02:00 committed by GitHub
parent c53876a83a
commit 073c94f6a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -43,9 +43,9 @@ except TimeoutError:
print(driver.current_url)
logger.info('trying to save a screenshot via imgur')
# driver.reconnect()
driver.save_screenshot('c:/tmp/screenshot.jpg')
driver.save_screenshot('/tmp/screenshot.jpg')
driver.get('https://imgur.com/upload')
driver.find_element('css selector', 'input').send_keys('c:/tmp/screenshot.jpg')
driver.find_element('css selector', 'input').send_keys('/tmp/screenshot.jpg')
time.sleep(2)
logger.info('A SCREENSHOT IS SAVED ON %s' % driver.current_url)