loblab/noip-renew

Error "DeprecationWarning: find_element_by_"

Flavien06 opened this issue · 2 comments

Hello,
I use Raspberry Pi OS Lite.

Log file is empty, and in consol return I have

/usr/local/bin/noip-renew.py:73: DeprecationWarning: find_element_by_* commands are deprecated. Please use find_element() instead
  ele_usr = self.browser.find_element_by_name("username")
/usr/local/bin/noip-renew.py:74: DeprecationWarning: find_element_by_* commands are deprecated. Please use find_element() instead
  ele_pwd = self.browser.find_element_by_name("password")
/usr/local/bin/noip-renew.py:77: DeprecationWarning: find_element_by_* commands are deprecated. Please use find_element() instead
  self.browser.find_element_by_name("Login").click()

I get the same error with Raspberry Pi 3b+ and Raspberry OS (64 bit)

ele_usr = self.browser.find_element("name","username")
ele_pwd = self.browser.find_element("name", "password")
ele_usr.send_keys(self.username)
ele_pwd.send_keys(self.password)
self.browser.find_element("id", "clogs-captcha-button").click()