-
Notifications
You must be signed in to change notification settings - Fork 238
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
Exception occurred: Message: no such element: Unable to locate element #80
Comments
Delete the line "utf8" in data |
Ok people, since I had problems with this script since the beginning (First it was selenium issue for which I had to rewrite the driver location, then the config file was not getting parsed correctly, now the mentioned crash above which was solved by commenting the utf8 line as was advised) I want to post working as of 28/03/2024 version of visa.py which is running right now and was able to catch a slot within the specified range. |
`import time from selenium import webdriver from sendgrid import SendGridAPIClient from embassy import * config = configparser.ConfigParser() Personal Info:Account and current appointment info from https://ais.usvisa-info.comUSERNAME = '[email protected]' Find SCHEDULE_ID in re-schedule page link:https://ais.usvisa-info.com/en-am/niv/schedule/{SCHEDULE_ID}/appointmentSCHEDULE_ID = '56637598' Target Period:PRIOD_START = '2024-03-26' Embassy Section:YOUR_EMBASSY = 'en-ca-van' RETRY_TIME_L_BOUND = 20 CHROMEDRIVERLOCAL_USE = True NotificationPUSHOVER_TOKEN = '' Time Section:minute = 60 # 60 seconds Time between steps (interactions with forms)STEP_TIME = 0.5 SIGN_IN_LINK = f"https://ais.usvisa-info.com/{EMBASSY}/niv/users/sign_in" JS_SCRIPT = ("var req = new XMLHttpRequest();" def send_notification(title, msg): def auto_action(label, find_by, el_type, action, value, sleep_time=0): def start_process(): def reschedule(date): def get_date(): def get_time(date): def is_logged_in(): def get_available_date(dates):
def info_logger(file_path, log): if LOCAL_USE: if name == "main": print(msg) |
Hi, could you help me by explaining what exactly you mean by the utf8 line? |
@turik97 could you please share your script as an attachment? I tried to use the code you pasted but formatting got messed up |
could you please share your script as an attachment? formatting got messed up |
Available dates:
2026-07-30, 2026-07-31, 2026-08-04, 2026-08-06, 2026-08-07, 2026-08-10, 2026-08-11, 2026-08-12, 2026-08-13, 2026-08-14, 2026-08-17, 2026-08-18, 2026-08-20, 2026-08-21, 2026-08-24, 2026-08-25, 2026-08-26, 2026-08-27, 2026-08-28, 2026-08-31,
Got time successfully! 2026-07-30 08:45
Exception occurred: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[name="utf8"]"}
(Session info: chrome=122.0.6261.112); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
GetHandleVerifier [0x00007FF74E4FAD02+56930]
(No symbol) [0x00007FF74E46F602]
(No symbol) [0x00007FF74E3242E5]
(No symbol) [0x00007FF74E3698ED]
(No symbol) [0x00007FF74E369A2C]
(No symbol) [0x00007FF74E3AA967]
(No symbol) [0x00007FF74E38BCDF]
(No symbol) [0x00007FF74E3A81E2]
(No symbol) [0x00007FF74E38BA43]
(No symbol) [0x00007FF74E35D438]
(No symbol) [0x00007FF74E35E4D1]
GetHandleVerifier [0x00007FF74E876F8D+3711213]
GetHandleVerifier [0x00007FF74E8D04CD+4077101]
GetHandleVerifier [0x00007FF74E8C865F+4044735]
GetHandleVerifier [0x00007FF74E599736+706710]
(No symbol) [0x00007FF74E47B8DF]
(No symbol) [0x00007FF74E476AC4]
(No symbol) [0x00007FF74E476C1C]
(No symbol) [0x00007FF74E4668D4]
BaseThreadInitThunk [0x00007FFA0E52257D+29]
RtlUserThreadStart [0x00007FFA1040AA58+40]
The text was updated successfully, but these errors were encountered: