From 9390baeec9db2743ef17e5fa389e94305c7fd3df Mon Sep 17 00:00:00 2001 From: azuki774s Date: Mon, 28 Aug 2023 20:20:35 +0900 Subject: [PATCH] update xpath --- src/money-forward/money.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/money-forward/money.py b/src/money-forward/money.py index aef5f62..17e5db3 100644 --- a/src/money-forward/money.py +++ b/src/money-forward/money.py @@ -19,25 +19,25 @@ def login(driver): login_id = driver.find_element( by=By.XPATH, - value="/html/body/main/div/div[2]/div/div/div[1]/section/form/div[2]/div/input", + value="/html/body/main/div/div[2]/div/div/div[1]/section/form/div/div/input", ) login_id.send_keys(os.getenv("id")) email_button = driver.find_element( by=By.XPATH, - value="/html/body/main/div/div[2]/div/div/div[1]/section/form/div[2]/div/div[3]/button", + value="/html/body/main/div/div[2]/div/div/div[1]/section/form/div/div/div[3]/button", ) email_button.click() password_form = driver.find_element( by=By.XPATH, - value="/html/body/main/div/div[2]/div/div/div[1]/section/form/div[2]/div/div[2]/input", + value="/html/body/main/div/div[2]/div/div/div[1]/section/form/div/div/div[2]/input", ) password_form.send_keys(os.getenv("pass")) login_button = driver.find_element( by=By.XPATH, - value="/html/body/main/div/div[2]/div/div/div[1]/section/form/div[2]/div/div[3]/button", + value="/html/body/main/div/div[2]/div/div/div[1]/section/form/div/div/div[3]/button", ) login_button.click() @@ -49,7 +49,7 @@ def login(driver): # choose account button choose_button = driver.find_element( by=By.XPATH, - value="/html/body/main/div/div[2]/div/div/div[1]/section/form/div[2]/div/div[2]/button", + value="/html/body/main/div/div[2]/div/div/div[1]/section/form/div/div/div[2]/button", ) choose_button.click()