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

Message: element not interactable #68

Open
hugoKs3 opened this issue Apr 9, 2021 · 13 comments
Open

Message: element not interactable #68

hugoKs3 opened this issue Apr 9, 2021 · 13 comments

Comments

@hugoKs3
Copy link

hugoKs3 commented Apr 9, 2021

Troubles with the script since a few days:

[2021/04/09 03:23:12] - Opening https://www.noip.com/login...
[2021/04/09 03:23:21] - Logging in...
[2021/04/09 03:23:23] - Message: element not interactable

Was working fine until now.
Any clue?

@peterchs
Copy link

peterchs commented Apr 9, 2021

Looks like the login form changed, dupe elements which arent visible/enabled being selected.

Think I fixed it changing the selectors for the username/password/login controls to ensure the visible/enable ones get picked. Although none of my hosts needed confirmed, its not getting stuck at login any longer.

Lines starting at

ele_usr = self.browser.find_element_by_name("username")

From:

ele_usr = self.browser.find_element_by_name("username")
ele_pwd = self.browser.find_element_by_name("password")
...
self.browser.find_element_by_name("Login").click()

To:

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']")
...
self.browser.find_element_by_xpath("//form[@id='clogs']/button[@type='submit']").click()

@hugoKs3
Copy link
Author

hugoKs3 commented Apr 9, 2021

I did the same 😉

neothematrix added a commit to neothematrix/noip-renew that referenced this issue Apr 10, 2021
@neothematrix
Copy link
Contributor

I also did the same and it's now working, I also sent a PR to fix this in the main code, thanks for the suggestion!

@TheBingPlays
Copy link

Changed the code in noip-renew.py but im still getting "element not interactable"

@peterchs
Copy link

Still working ok here. Any log?

@TheBingPlays
Copy link

TheBingPlays commented Apr 12, 2021

Still working ok here. Any log?

Nothing in var
image

Changed my noip-renew.py file to txt.
1noip-renew.txt

@kodavn
Copy link

kodavn commented Apr 15, 2021

worked. Thank you

@peterchs
Copy link

@TheBingPlays mean what debug is outputted when you run it.. is it the same as the reporter had? Maybe add some debug lines work out where it’s failing for you, still working ok here and for others it seems.

@arooni
Copy link

arooni commented Apr 16, 2021

had this error today

[I] ✘  ~/s/noip-renew   master ±  ./noip-renew.sh
[2021/04/16 18:40:20] - Debug level: 2
[2021/04/16 18:40:20] - Opening https://www.noip.com/login...
[2021/04/16 18:40:24] - Logging in...
[2021/04/16 18:40:24] - Message: element not interactable
(Session info: headless chrome=90.0.4430.72)

running 9640063 [9 weeks ago] (HEAD -> master, origin/master, origin/HEAD) Merge pull request #49 from snakuzzo/patch-3 [GitHub]

@peterchs
Copy link

peterchs commented Apr 17, 2021

PR to fix this hasnt been merged yet.

I've tested it this morning, with Chrome 90 and the changes mentioned above - they are still working ok for me, no error.

Try above fixes manually or https://github.com/neothematrix/noip-renew/tree/patch-1

Also I had a host committed and it completed successfully.

@anishsane
Copy link

I did below change, and it works too (PR #73):

-        self.browser.find_element_by_name("Login").click()
+        ele_usr.submit()

I am OK with either approach.
But I am not expert on selenium usages. Can someone here tell me, which of the approaches are better? form submit or element clicking by searching for type=submit?

@TheBingPlays
Copy link

@TheBingPlays mean what debug is outputted when you run it.. is it the same as the reporter had? Maybe add some debug lines work out where it’s failing for you, still working ok here and for others it seems.

It's like the script is not reading the edited .py file. Like it's trying to execute the unedited one. I don't know how to fix that.

@sendorm
Copy link

sendorm commented May 2, 2021

I did below change, and it works too (PR #73):

-        self.browser.find_element_by_name("Login").click()
+        ele_usr.submit()

I am OK with either approach.
But I am not expert on selenium usages. Can someone here tell me, which of the approaches are better? form submit or element clicking by searching for type=submit?

Your method worked for me. The other method did not. Thank you.

MegaV0lt added a commit to MegaV0lt/noip-renew that referenced this issue May 16, 2021
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

Successfully merging a pull request may close this issue.

8 participants