Skip to content

Commit

Permalink
update xpath
Browse files Browse the repository at this point in the history
  • Loading branch information
azuki774 committed Aug 28, 2023
1 parent 2099017 commit 9390bae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/money-forward/money.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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()

Expand Down

0 comments on commit 9390bae

Please sign in to comment.