error selenium
Closed this issue · 11 comments
C:\активатор>main.py --chrome --key
Traceback (most recent call last):
File "C:\активатор\main.py", line 1, in
from modules.WebDriverInstaller import *
File "C:\активатор\modules\WebDriverInstaller.py", line 1, in
from .SharedTools import console_log, INFO, OK, ERROR
File "C:\активатор\modules\SharedTools.py", line 1, in
from selenium.webdriver import Chrome, ChromeOptions, ChromeService
ModuleNotFoundError: No module named 'selenium'
В cmd:
pip uninstall selenium
pip install selenium
В cmd:
pip uninstall selenium pip install selenium
The error remains
Значит у вас 2 разных python установлено
pip привязан к 1, а запускаете на втором
сейчас попробую снести python и поставить заново
Всё заработало после удаления второй версии в укромном месте)
[ FAILED ] Traceback (most recent call last):
File "C:\активатор\main.py", line 359, in main
EsetKeyG.sendRequestForKey()
File "C:\активатор\modules\EsetTools.py", line 111, in sendRequestForKey
exec_js(f"return {GET_EBID}('email')").send_keys(self.email_obj.email)
File "C:\Users\Yury7\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webelement.py", line 231, in send_keys
self._execute(
File "C:\Users\Yury7\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webelement.py", line 395, in _execute
return self._parent.execute(command, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Yury7\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "C:\Users\Yury7\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
(Session info: chrome-headless-shell=125.0.6422.144)
[ FAILED ] Traceback (most recent call last): File "C:\активатор\main.py", line 359, in main EsetKeyG.sendRequestForKey() File "C:\активатор\modules\EsetTools.py", line 111, in sendRequestForKey exec_js(f"return {GET_EBID}('email')").send_keys(self.email_obj.email) File "C:\Users\Yury7\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webelement.py", line 231, in send_keys self._execute( File "C:\Users\Yury7\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webelement.py", line 395, in _execute return self._parent.execute(command, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Yury7\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute self.error_handler.check_response(response) File "C:\Users\Yury7\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable (Session info: chrome-headless-shell=125.0.6422.144)
запускаете в режиме --no-headless
и когда появится страница в окне браузера, то сделайте уменьшение масштаба страницы несколько раз с помощью Cntrl + колесико мыши вниз
или Cntrl + -
Такое уже случалось и не раз.
[ FAILED ] Traceback (most recent call last):
File "main.py", line 291, in main
File "modules\WebDriverInstaller.py", line 335, in menu
RuntimeError: Google Chrome was not found in the standard catalogs!
[ FAILED ] Traceback (most recent call last): File "main.py", line 291, in main File "modules\WebDriverInstaller.py", line 335, in menu RuntimeError: Google Chrome was not found in the standard catalogs!
Use another browser or type full path to chrome.exe with --custom-browser-location