Skip to content

Commit

Permalink
specify get by role and element names (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-chung authored Nov 26, 2024
1 parent a652e45 commit feb4811
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions give_kudos.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def email_login(self):
self.page.get_by_role("button", name="Reject").click(timeout=5000)
except Exception as _:
pass
self.page.fill('#email', self.EMAIL)
self.page.fill("#password", self.PASSWORD)
self.page.click("button[type='submit']")
self.page.get_by_role("textbox", name='email').fill(self.EMAIL)
self.page.get_by_role("textbox", name="password").fill(self.PASSWORD)
self.page.get_by_role("button", name="Log In").click()
print("---Logged in!!---")
self._run_with_retries(func=self._get_page_and_own_profile)

Expand Down

0 comments on commit feb4811

Please sign in to comment.