diff --git a/Script/messages-sender.py b/Script/messages-sender.py index 1821ff1..f6615d4 100644 --- a/Script/messages-sender.py +++ b/Script/messages-sender.py @@ -39,7 +39,7 @@ def close(): sleep(2) 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()