bangkokterew.blogg.se

How to remove gecko driver cache in container
How to remove gecko driver cache in container









to_capabilities ( ) ) ~/anaconda3_420/lib/python3.5/site-packages/selenium/webdriver/common/service.py in start (self) 81 raise WebDriverException(Ĩ2 "'%s' executable needs to be in PATH. Firefox (firefox_binary =binary ) ~/anaconda3_420/lib/python3.5/site-packages/selenium/webdriver/firefox/webdriver.py in _init_ (self, firefox_profile, firefox_binary, timeout, capabilities, proxy, executable_path, options, service_log_path, firefox_options, service_args, desired_capabilities, log_path, keep_alive) 162 service_args =service_args, 163 log_path=service_log_path) in () 8 9 binary = FirefoxBinary ( r'/home/nbuser/library/geckodriver.exe' ) -> 10 browser = webdriver. WebDriverException Traceback (most recent call last) log_file, -> 76 stdin=PIPE)ħ7 except TypeError : ~/anaconda3_420/lib/python3.5/subprocess.py in _init_ (self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds) 675 errread, errwrite, -> 676 restore_signals, start_new_session)Ħ77 except : ~/anaconda3_420/lib/python3.5/subprocess.py in _execute_child (self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session) 1288 err_msg += ': ' + repr (orig_executable ) -> 1289 raise child_exception_type (errno_num, err_msg ) 1290 raise child_exception_type (err_msg ) FileNotFoundError: No such file or directory: 'geckodriver'ĭuring handling of the above exception, another exception occurred: ~/anaconda3_420/lib/python3.5/site-packages/selenium/webdriver/common/service.py in start (self) 75 stderr =self. FileNotFoundError Traceback (most recent call last) May I know how should I set the path for geckodriver.exe?įrom _binary import FirefoxBinaryīinary = FirefoxBinary(r'/home/nbuser/library/geckodriver.exe')īrowser = webdriver.Firefox(firefox_binary=binary) Hi, currently I'm trying to run some codes with using the selenium with Firefox webpage.











How to remove gecko driver cache in container