Bypass new login window#25
Conversation
I tried it with hungarian login, it worked, but I don't have 2 factor authenticaiton in here, so some aditional change might needed. It uses XPATH instead of ID.
|
if this is not working change the api.py line 214, the headles to False, like this: and change timeout in 216 to a higher time, like this: this way, you will see the window, and will have time for check, what is the difference ( with F12) |
| wait.until(expected_conditions.element_to_be_clickable((By.ID, "field_Password"))).send_keys(password) | ||
| self._click(browser, (By.ID, "button_submit")) | ||
| wait.until(expected_conditions.visibility_of_element_located((By.XPATH, '//*[@id="duple-button-block"]/button[1]/span'))).click() | ||
| #wait.until(expected_conditions.visibility_of_element_located((By.NAME, "EmailOrPhone"))).send_keys(phone) |
There was a problem hiding this comment.
What exactly is this comment for? Did you forget to remove it? If not, please explain its purpose in the code.
| self._click(browser, (By.CLASS_NAME, "role_next")) | ||
|
|
||
| def login(self, phone, password, **kwargs): | ||
| def login(self, email, password, **kwargs): |
There was a problem hiding this comment.
The login form now seems to require email instead of phone. Could you also replace all other occurences of this (e.g. in the login CLI) where there's "phone" to "email"?
I can see at least one occurence, where the variable should probably be named email and the (phone number) part of the string should be changed to (email).
lidl-plus/lidlplus/__main__.py
Line 87 in 0f1cd92
|
Hi, I tried to use this fork on both Windows and Linux, but login still does not work. Environment
What works
ProblemLogin flow via Selenium fails:
Also, when browser opens manually, Lidl shows: This suggests:
ConclusionIt seems that Selenium-based login is no longer reliable. SuggestionMaybe it would be better to:
Let me know if you need more logs. Thanks for your work! |
The new change can do the login.
Important! For me there was no 2 factor authentication, and worked only with email, so this version works with the email. If your country has 2nd factroy, than maybe some other changes might need.