Skip to content

Commit

Permalink
Update monitor+log.py
Browse files Browse the repository at this point in the history
Former-commit-id: 77b0580
Former-commit-id: a8f2069
  • Loading branch information
rizwansoaib authored Feb 10, 2020
1 parent 8e95dc5 commit 08bea71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Script/monitor+log.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def close():

sleep(30)
with open('qr.png', 'wb') as file:
file.write(driver.find_element_by_xpath('/html/body/div[1]/div/div/div[2]/div[1]/div/div[2]/div/img').screenshot_as_png)
file.write(driver.find_element_by_xpath('/html/body/div[1]/div/div/div[2]/div[1]/div/div[2]/div/canvas').screenshot_as_png)
image = Image.open('qr.png')
print("Sucessfully QR code genereted")
image.show()
Expand Down

0 comments on commit 08bea71

Please sign in to comment.