diff --git a/Script/monitor+log.py b/Script/monitor+log.py index f6a1baf..4664c0d 100644 --- a/Script/monitor+log.py +++ b/Script/monitor+log.py @@ -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()