From 844d8ad8adf5acd7a314a406eba6a3e33d00b965 Mon Sep 17 00:00:00 2001 From: RIZWAN AHMAD Date: Mon, 10 Feb 2020 23:13:41 +0530 Subject: [PATCH] Update messages-sender.py Former-commit-id: 9a22da9f24fb8b4a188c0057e24290242456fab1 Former-commit-id: d635339922ca407a451f6f52355d97d199278ec4 --- Script/messages-sender.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()