However, I asked in part so that I would not have to spend hours trying to figure out the answer for myself. Maybe it is too simple? If I can find the source code, I believe I can read it and learn the answer. ![]() The documentation I found also does not address that. I want to know if the first location searched is /usr/lib/chromium/chromedriver. The documentation states that this method will search if a path is not provided. Furthermore, adding exception handling is not relevant to my question. Follow the below steps to create Python virtual environment and install the required python modules. Step 2: Installing Selenium and Webdriver for Python We will use a virtual environment for running Python scripts. This will also create an Apt PPA file for further upgrades. However, it does not mention what types of exceptions it throws. This will complete the Google Chrome on your Ubuntu or Debian system. My question is simply can anyone confirm that this will work correctly under the conditions above without the path?ĮDIT: In response to a comment: This appears to be the documentation: I don't want to encounter an error related to this when I deploy. I will also see what works on my system, but I am looking for feedback based on actual real-world experience. I would guess that because chromedriver and chromium are developed by the same team, and they are packaged together, I can avoid any problems without having to hard code the path. But I wish to avoid searching multiple paths and I want to avoid any chance of runtime errors due to chromedriver not being found. ![]() I see from the instructions that if the path is not provided explicitly, it will search. When using chromium, is it necessary to provide a path to chromedriver, as in the example below? driver = webdriver.Chrome(executable_path="/usr/lib/chromium/chromedriver",options=chromeOptions) In chromium, chromedriver is included (at least on Arch, and probably on all distros): /usr/lib/chromium/chromedriver
0 Comments
Leave a Reply. |