Closed vartana closed 11 months ago
Hi. Thanks for filing this issue. This happens when the login button was not clickable, and therefore the login form couldn't be submitted. Does this issue happen every time you run the script?
To further debug what's happening, could you put driver.save_screenshot("login.png")
on line 186 of lib/webdriver.py
and run the script again? There should be a popup that appears. What does the popup message say?
Happens every time @jdholtz
Thanks. So it seems to be failing to log you in due to a 429, similar to #174. Could you send the logs of a run?
Also, can you delete line 187 (driver.click(login_button)
) of lib/webdriver.py
(the original version, not the one with the line for save_screenshot) and see if you get a "Too Many Requests" error, like #174? Knowing this will help me improve the script to not throw an 'element click intercepted' error, but instead the "Too Many Requests" error.
Hey @vartana, any updates to my previous comment?
This issue is happening for me as well, both when I run it locally, and when I install the Docker container on a fresh Digital Ocean server. I'll try to get debug. It does say it successfully logs in, but then produces the following, so I'm not sure if it will work or not.
Checkin did actually work still.
@sidneyvanness could you use my suggestion about editing the code here and let me know the results?
Also, do you have multiple accounts logging in on the script? It makes 2 processes so one might’ve worked and another didn’t.
I was able to reproduce this issue by providing invalid credentials to the login page. The issue is now fixed on the develop
branch. Thanks for everyone who reported it.
Version
7.1
Browser Version
119.0.6045.159
Description
Here is an error I get running it with config.json with my login information.
Traceback (most recent call last): File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run self._target(*self._args, *self._kwargs) File "/home/vartana/projects/auto-southwest-check-in/lib/reservation_monitor.py", line 42, in monitor self._monitor() File "/home/vartana/projects/auto-southwest-check-in/lib/reservation_monitor.py", line 157, in _monitor reservations, skip_scheduling = self._get_reservations() File "/home/vartana/projects/auto-southwest-check-in/lib/reservation_monitor.py", line 182, in _get_reservations reservations = webdriver.get_reservations(self) File "/home/vartana/projects/auto-southwest-check-in/lib/webdriver.py", line 93, in get_reservations self._wait_for_login(driver, account_monitor) File "/home/vartana/projects/auto-southwest-check-in/lib/webdriver.py", line 163, in _wait_for_login self._click_login_button(driver) File "/home/vartana/projects/auto-southwest-check-in/lib/webdriver.py", line 187, in _click_login_button driver.click(login_button) File "/home/vartana/.local/lib/python3.8/site-packages/seleniumbase/core/sb_driver.py", line 54, in click page_actions.click(self.driver, args, **kwargs) File "/home/vartana/.local/lib/python3.8/site-packages/seleniumbase/fixtures/page_actions.py", line 1526, in click element.click() File "/home/vartana/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 93, in click self._execute(Command.CLICK_ELEMENT) File "/home/vartana/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 394, in _execute return self._parent.execute(command, params) File "/home/vartana/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute self.error_handler.check_response(response) File "/home/vartana/.local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element is not clickable at point (712, 302). Other element would receive the click:
(Session info: chrome=119.0.6045.159) Stacktrace:0 0x556403fdb5e3
1 0x556403c9e0b7
2 0x556403cf3cfc
3 0x556403cf165f
4 0x556403ceebe4
5 0x556403ced934
6 0x556403ce01a0
7 0x556403d12ef2
8 0x556403cdfa02
9 0x556403d130be
10 0x556403d2eb3d
11 0x556403d12cc3
12 0x556403cde0e4
13 0x556403cdf0ae
14 0x556403fa1ce1
15 0x556403fa5b7e
16 0x556403f8f4b5
17 0x556403fa67d6
18 0x556403f72dbf
19 0x556403fc9748
20 0x556403fc9917
21 0x556403fda773
22 0x7fcf7fc63609 start_thread
To Reproduce
python3 southwest.py
Expected Behavior
To not get an error.
Relevant logs and program output
No response
Additional context
No response