Skip to content

Commit

Permalink
fix error related to QR code
Browse files Browse the repository at this point in the history
  • Loading branch information
siyuanwu99 committed Jan 11, 2021
1 parent c302044 commit 868af84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']"
Expand Down

0 comments on commit 868af84

Please sign in to comment.