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

Login #92

Open
wants to merge 88 commits into
base: master
Choose a base branch
from
Open

Login #92

wants to merge 88 commits into from

Conversation

Angel0ffDeath
Copy link

Login - Tested and works:
from selenium.webdriver.common.keys import Keys

ele_pwd.send_keys(base64.b64decode(self.password).decode('utf-8'))
ele_pwd.send_keys(Keys.ENTER)

comment the line
self.browser.find_element(By.XPATH, "//form[@id='clogs']/button[@type='submit']").click()

This way it is not necessary to find the button - something which works now but may not work if they change web page

neothematrix and others added 30 commits November 5, 2021 19:48
I replaced "find_element_by_xpath" with "find_element(By.XPATH "*").
When testing out the script, I get multiple warnings that the find_element_by_ method is deprecated and find_element() is the preferred method.
This makes the output easier to diagnose when looking for bugs.
Cron scheduling script name was not correct.

Was changed to:
INSTEXE=$INSTDIR/noip-renew-$USER.sh
Update noip-renew-skd.sh
As @Angel0ffDeath discovered, the password is base64 encoded when setup.sh is run.  Thus you can't just pass the encoded password to the field, it won't match the correct password.
 ele_pwd.send_keys(base64.b64decode(self.password).decode('utf-8'))  will decode the password back to the acceptable text.
Restore password decoding
Login - Tested and works. This way you don't need to find Log In button.
simplified login submission logic
initial docker build and push support for #11
More elegant finding of username and password fields - no xpath;
Browser waits until login page is loaded - waiting max of 10 sec or until login section appears in browser - If somebody has problems this could be increased to max of 20 or even 30 sec;;
Browser waits after login to load my.noip.com page (this is not dynamic-dns page), but the page which loads after login - didn't had time to make it with explicit wait so I made it with implicit wait of 1 sec. For implicit wait some characteristic element should be used;

The code is tested and working by me, but would appreciate your test results for improvement.
Updated Login and all sleeps removed
removed history and version as they are now tracked via github release and tag
neothematrix and others added 30 commits January 20, 2024 20:24
Added tested versions of chrome webdriver and selenium
Updated selenium versions after testing
Added cronjob deleting on uninstall
This doesn't change the execution. Preparation for further altering with sed command from setup.sh
added cronjob deleting on unistall
Update noip-renew-skd.sh - preparation for change to resolve #42
small fix to x64 debian install
@neothematrix This change alters noip-renew-skd.sh if user wants randomized cronjob
Altering noip-renew-skd.sh - randomized cronjob
Sorry... found a typing mistake in my previous PR
Added info about randomized cronjob
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 this pull request may close these issues.

4 participants