![]() Raise child_exception_type(errno_num, err_msg, err_filename) Self._execute_child(args, executable, preexec_fn, close_fds,įile “/usr/lib/python3.10/subprocess.py”, line 1842, in _execute_child Self.process = subprocess.Popen(cmd, env=self.env,įile “/usr/lib/python3.10/subprocess.py”, line 966, in init ![]() init(DesiredCapabilities.CHROME, “goog”,įile “/usr/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py”, line 89, in initįile “/usr/lib/python3.10/site-packages/selenium/webdriver/common/service.py”, line 71, in start ![]() Result = self.fn(*self.args, **self.kwargs)įile “/config/appdaemon/apps/speedread.py”, line 23, in initializeįile “/usr/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py”, line 69, in init 23:54:09.954721 WARNING Speed_Read: Traceback (most recent call last):įile “/usr/lib/python3.10/site-packages/appdaemon/app_management.py”, line 165, in initialize_appįile “/usr/lib/python3.10/site-packages/appdaemon/utils.py”, line 337, in run_in_executorįile “/usr/lib/python3.10/concurrent/futures/thread.py”, line 58, in run 23:54:09.945267 WARNING Speed_Read: Unexpected error running initialize() for Speed_Read ![]() I tried doing this will AppDaemon (0.9.0) but even this short script:: import hassapi as hassĭriver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install())) I would like to employ this python script which runs nicely on my Windows PC also in HA (2022.7.3): from selenium import webdriverįrom import Optionsįrom import Service as ChromeServiceįrom webdriver_manager.chrome import ChromeDriverManagerįrom import Byįrom import WebDriverWaitįrom import expected_conditions as ECĬhrome_options.add_argument('-headless')Ĭhrome_options.add_argument('-no-sandbox')Ĭhrome_options.add_argument('-disable-gpu')Ĭhrome_options.add_argument('-disable-dev-shm-usage')ĭriver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()), options=chrome_options)Įlement = WebDriverWait(driver, 20).until(ĮC.visibility_of_element_located((By.ID, 'var_dsl_downstream'))
0 Comments
Leave a Reply. |