From 868af84ed2d39e5bf263c77112059637d98ceea9 Mon Sep 17 00:00:00 2001 From: edmundwsy Date: Mon, 11 Jan 2021 14:19:33 +0800 Subject: [PATCH] fix error related to QR code --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 5c9d633..54380e3 100644 --- a/main.py +++ b/main.py @@ -61,10 +61,10 @@ def main(): driver.switch_to.frame(iframe) iframe = driver.find_element_by_xpath("//iframe[@onload='__iframe_onload1()']") driver.switch_to.frame(iframe) - driver.find_element_by_xpath("//input[@value='绿色']").click() - logger.info("Check green status") - driver.find_element_by_xpath("//input[@id='mini-4$ck$0']").click() - logger.info("Check has Xi'an QR") + # driver.find_element_by_xpath("//input[@value='绿色']").click() + # logger.info("Check green status") + # driver.find_element_by_xpath("//input[@id='mini-4$ck$0']").click() + # logger.info("Check has Xi'an QR") temp = str(round(36 + random(), 1)) driver.find_element_by_xpath( "//input[@placeholder='请准确填写体温,格式如:36.5']"