From da537d514c29d51c469b96e43d265f3aeb2be2b8 Mon Sep 17 00:00:00 2001 From: RIZWAN AHMAD Date: Mon, 10 Feb 2020 23:14:31 +0530 Subject: [PATCH] Update message-scheduler.py Former-commit-id: 5f67cf4afd41fb95ba059495b27f07016e865dbb Former-commit-id: cb67b44af1fba5afa4c83aa74dee09f20f09a4e1 --- Script/message-scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Script/message-scheduler.py b/Script/message-scheduler.py index 490819f..0731f3d 100644 --- a/Script/message-scheduler.py +++ b/Script/message-scheduler.py @@ -55,7 +55,7 @@ def sendnow(name,message): 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()