Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to click on "Confirm" (UI Update?) #104

Open
rubenvg95 opened this issue Jan 14, 2024 · 4 comments
Open

Unable to click on "Confirm" (UI Update?) #104

rubenvg95 opened this issue Jan 14, 2024 · 4 comments

Comments

@rubenvg95
Copy link

Hello,

I got this error today:

2024/01/14 11:05:19] - Debug level: 2 [2024/01/14 11:05:19] - Opening https://www.noip.com/login... [2024/01/14 11:05:21] - Logging in... [2024/01/14 11:05:25] - Opening https://my.noip.com/dynamic-dns... [2024/01/14 11:05:28] - Message: no such element: Unable to locate element: {"method":"xpath","selector":".//following-sibling::td[4]/button[contains(@class, 'btn')]"} (Session info: headless chrome=90.0.4430.212) Stacktrace: #0 0x560e0bb1e7f9 <unknown> #1 0x560e0babe3b3 <unknown> #2 0x560e0b806016 <unknown> #3 0x560e0b83a81e <unknown> #4 0x560e0b831e67 <unknown> #5 0x560e0b85dded <unknown> #6 0x560e0b831d7b <unknown> #7 0x560e0b85dfce <unknown> #8 0x560e0b86e9e1 <unknown> #9 0x560e0b85dc93 <unknown> #10 0x560e0b82fce4 <unknown> #11 0x560e0b8314d2 <unknown> #12 0x560e0baea542 <unknown> #13 0x560e0baf9ce7 <unknown> #14 0x560e0baf99e4 <unknown> #15 0x560e0bafe13a <unknown> #16 0x560e0bafa5b9 <unknown> #17 0x560e0badfe00 <unknown> #18 0x560e0bb115d2 <unknown> #19 0x560e0bb11778 <unkno...

It seems to be related with:
def get_host_button(host, iteration): return host.find_element(By.XPATH, ".//following-sibling::td[4]/button[contains(@class, 'btn')]")

@christoschronopoulos
Copy link

christoschronopoulos commented Feb 21, 2024

I have exactly the same problem.
I checked the button element class on Chrome and then changed the python function (see below) but with no success. It doesn't work.

def get_host_button(host, iteration): return host.find_element(By.XPATH, ".//following-sibling::td[4]/button[contains(@class, 'btn btn-labeled btn-success')]")

@christoschronopoulos
Copy link

I solved it by changing the noip-renew.py get_host_button function to the following:

def get_host_button(host, iteration): return host.find_element(By.XPATH, "//td[6]/button[contains(@class, 'btn-success')]")

@OzymoGit
Copy link

I solved it by changing the noip-renew.py get_host_button function to the following:

def get_host_button(host, iteration): return host.find_element(By.XPATH, "//td[6]/button[contains(@class, 'btn-success')]")

thanks can you share your fork

@christoschronopoulos
Copy link

christoschronopoulos commented Feb 26, 2024

thanks can you share your fork

Unfortunately, I haven't published a fork of the project. However, the aforementioned code snippet is the only change required in the code.

EDIT: I just created a fork and made the update to the file. Please let me know if it works.
https://github.com/christoschronopoulos/noip-renew/tree/master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants