Skip to content

Commit

Permalink
find new login button
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Aug 14, 2024
1 parent 42f35e1 commit 44d45fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/forge_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def login(self, session: requestium.Session, urls: ForgeURLs) -> None:
time.sleep(0.25)
username_field.send_keys(self.creds.username)
password_field.send_keys(self.creds.password)
login_button = WebDriverWait(session.driver, self.timeout).until(EC.element_to_be_clickable((By.CLASS_NAME, "registerbtn")))
login_button = WebDriverWait(session.driver, self.timeout).until(EC.element_to_be_clickable((By.XPATH, "//a[@class='registerbtn']")))
login_button.click()
time.sleep(0.25)

Expand Down
2 changes: 1 addition & 1 deletion tests/forge_api/forge_item/test_forge_item_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
TEST_CALLS = [
(By.NAME, "vb_login_username"),
(By.NAME, "vb_login_password"),
(By.CLASS_NAME, "registerbtn"),
(By.XPATH, "//a[@class='registerbtn']"),
]


Expand Down

0 comments on commit 44d45fb

Please sign in to comment.