Skip to content

Commit

Permalink
Fix bug where we need to accept cookies first before continuing to th…
Browse files Browse the repository at this point in the history
…e homepagecenter
  • Loading branch information
nikilase committed Sep 22, 2024
1 parent bf3052f commit 61b2326
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ def login(br: WebDriver, username: str, password: str):
log.debug(5)
br.get("https://homepagecenter.telekom.de/index.php")
log.debug(6)
cookie_accept = br.find_element(By.ID, "rejectAll")
cookie_accept.click()
br.get("https://homepagecenter.telekom.de/index.php")
sleep(2)


def logout(br: WebDriver):
Expand Down

0 comments on commit 61b2326

Please sign in to comment.