Skip to content

Commit

Permalink
adapting to changes to logged-in page
Browse files Browse the repository at this point in the history
logged-in page changed and the script didn't find the searched element anymore, this will fix it.
  • Loading branch information
neothematrix authored Mar 26, 2022
1 parent 508ba43 commit 732387f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noip-renew.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def login(self):
ele_pwd.send_keys(Keys.ENTER)

# After Loggin browser loads my.noip.com page - give him some time to load
# 'noip-cart' element is near the end of html, so html have been loaded
# 'free-callout' element is near the end of html, so html have been loaded
try:
elem = WebDriverWait(self.browser, 10).until( EC.presence_of_element_located((By.ID, "noip-cart")))
elem = WebDriverWait(self.browser, 10).until( EC.presence_of_element_located((By.ID, "free-callout")))
except:
raise Exception("my.noip.com page could not load")

Expand Down

0 comments on commit 732387f

Please sign in to comment.