Answers for "chromedriver path"

3

chromedriver selenium python

# For Linux, but it is similar for Windows
# First make sure first that you have chrome browser installed on your system.

# a simple way to get the driver is: 
sudo apt-get install chromium-chromedriver
# this will download 75MB of files.

# another way is:
1. Download the lastest version of driver from:
  https://sites.google.com/a/chromium.org/chromedriver/ # only 5-7MB
2. Unzip the file.
3. Paste the file in /usr/local/bin using this command:
  sudo mv chromedriver /usr/local/bin # this makes sure that the directory is in your PATH variable.
4. Make your file executable:
  sudo chmod +x /usr/local/bin/chromedriver

Now you can use this in python:
  >>from selenium import webdriver
  >>browser = webdriver.Chrome()
  # it will work fine
Posted by: Guest on November-09-2020
1

selenium set chrome executable path

chromedriver = "/path/to/chromedriver"
options = Options()
options.binary_location = '/path/to/chrome'
driver = webdriver.Chrome(chromedriver, chrome_options=options)
Posted by: Guest on October-25-2020
0

selenium set chrome executable path

ChromeOptions options = new ChromeOptions();
options.setBinary("/path/to/chrome/binary");

ChromeDriver driver = new ChromeDriver(options);
Posted by: Guest on October-25-2020

Code answers related to "chromedriver path"

Python Answers by Framework

Browse Popular Code Answers by Language