Update test_workflow.py
This commit is contained in:
parent
c53876a83a
commit
073c94f6a9
|
@ -43,9 +43,9 @@ except TimeoutError:
|
||||||
print(driver.current_url)
|
print(driver.current_url)
|
||||||
logger.info('trying to save a screenshot via imgur')
|
logger.info('trying to save a screenshot via imgur')
|
||||||
# driver.reconnect()
|
# driver.reconnect()
|
||||||
driver.save_screenshot('c:/tmp/screenshot.jpg')
|
driver.save_screenshot('/tmp/screenshot.jpg')
|
||||||
driver.get('https://imgur.com/upload')
|
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)
|
time.sleep(2)
|
||||||
logger.info('A SCREENSHOT IS SAVED ON %s' % driver.current_url)
|
logger.info('A SCREENSHOT IS SAVED ON %s' % driver.current_url)
|
||||||
|
|
Loading…
Reference in New Issue