Skip to content

Commit

Permalink
fix for login form changes
Browse files Browse the repository at this point in the history
fixes loblab#68
  • Loading branch information
neothematrix authored Apr 10, 2021
1 parent 9640063 commit 6553196
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions noip-renew.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ def login(self):
self.browser.save_screenshot("debug1.png")

self.logger.log("Logging in...")
ele_usr = self.browser.find_element_by_name("username")
ele_pwd = self.browser.find_element_by_name("password")
ele_usr = self.browser.find_element_by_xpath("//form[@id='clogs']/input[@name='username']")
ele_pwd = self.browser.find_element_by_xpath("//form[@id='clogs']/input[@name='password']")
ele_usr.send_keys(self.username)
ele_pwd.send_keys(base64.b64decode(self.password).decode('utf-8'))
self.browser.find_element_by_name("Login").click()
self.browser.find_element_by_xpath("//form[@id='clogs']/button[@type='submit']").click()
if self.debug > 1:
time.sleep(1)
self.browser.save_screenshot("debug2.png")
Expand Down

0 comments on commit 6553196

Please sign in to comment.