loblab / noip-renew

Auto renew (confirm) noip.com free hosts
Apache License 2.0
423 stars 134 forks source link

E: Unable to locate element: #98

Closed chentzenomene closed 2 years ago

chentzenomene commented 2 years ago

Hi there,

from about three days i cannot update my hostname with the script. Here is the error after the script launch:

Message: no such element: Unable to locate element: {"method":"xpath","selector":"//form[@id='clogs']/input[@name='username']"} (Session info: headless chrome=101.0.4951.54)

Also there's a warning about the relative command which seems to be deprecated:

/usr/bin/noip-renew.py:77: DeprecationWarning: find_element_by_xpath is deprecated. Please use find_element(by=By.XPATH, value=xpath) instead ele_usr = self.browser.find_element_by_xpath("//form[@id='clogs']/input[@name='username']")

Platform is Ubuntu 21.10, python 3.9.7, selenium 4.1.5

Could you please let me know if there's a patch or another way to solve this?

Thank's in advance.

chentzenomene commented 2 years ago

I've resolved the issue checking the fork https://github.com/neothematrix/noip-renew/blob/master/noip-renew.py