-
Notifications
You must be signed in to change notification settings - Fork 12
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
error #4
Comments
Two possible reasons for the error:
To solve the first error increase the time variables. |
No, I have increased the time still not working after login It disappears. |
DevTools listening on ws://127.0.0.1:55392/devtools/browser/bb466553-69fc-4e66-8b97-14ba21937e52 Packagesfrom selenium import webdriver Configlogin_time = 30 # Time for login (in seconds) Create driverdriver = webdriver.Chrome(service=Service(ChromeDriverManager().install())) Encode Message TextEncode Message Text with error handlingwith open('message.txt', 'r', encoding='utf-8', errors='replace') as file: Loop Through Numbers Listwith open('numbers.txt', 'r', encoding='utf-8') as file:
Quit the driverdriver.quit() i am getting this error.. help me to solve this |
It's not working in my Google Chrome here is error code..
PS D:\whatsapp-bulk-messenger-experimental> & "C:/Program Files/Python311/python.exe" d:/whatsapp-bulk-messenger-experimental/main_2.py
DevTools listening on ws://127.0.0.1:65186/devtools/browser/4e025f0d-34cb-465a-8467-acdf308d8602
Traceback (most recent call last):
File "d:\whatsapp-bulk-messenger-experimental\main_2.py", line 42, in
msg_input = driver.find_element(By.CSS_SELECTOR, '._1CGek input')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dilip\AppData\Roaming\Python\Python311\site-packages\selenium\webdriver\remote\webdriver.py", line 739, in find_element
return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dilip\AppData\Roaming\Python\Python311\site-packages\selenium\webdriver\remote\webdriver.py", line 345, in execute
self.error_handler.check_response(response)
File "C:\Users\dilip\AppData\Roaming\Python\Python311\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"._1CGek input"}
(Session info: chrome=117.0.5938.63); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
GetHandleVerifier [0x003BCE43+45171]
(No symbol) [0x00349091]
(No symbol) [0x0023BE1D]
(No symbol) [0x0026ED40]
(No symbol) [0x0026F20B]
(No symbol) [0x0029F692]
(No symbol) [0x0028B094]
(No symbol) [0x0029DCFA]
(No symbol) [0x0028AE46]
(No symbol) [0x0026675E]
(No symbol) [0x002678FD]
GetHandleVerifier [0x00675449+2897529]
GetHandleVerifier [0x006BDBFB+3194411]
GetHandleVerifier [0x006B79D1+3169281]
GetHandleVerifier [0x004460C0+606960]
(No symbol) [0x00352E0C]
(No symbol) [0x0034EF98]
(No symbol) [0x0034F0BF]
(No symbol) [0x003417B7]
BaseThreadInitThunk [0x75027BA9+25]
RtlInitializeExceptionChain [0x770FB79B+107]
RtlClearBits [0x770FB71F+191]
The text was updated successfully, but these errors were encountered: