Soo i made a python script that uses selenium on my windows machine, now im trying to run it on my chromebook however i cant solve how to get the chromedriver for my chromebook.
Here is the python code:
from datetime import datetime
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import NoSuchElementException
warnings.filterwarnings("ignore", category=DeprecationWarning)
options = webdriver.ChromeOptions()
options.add_argument("start-maximized")
options.add_experimental_option('excludeSwitches', ['enable-logging'])
driver = webdriver.Chrome(options=options)
driver.get("https://google.com")
it works perfect on my windows machine since i have chromedriver in the samme folder as my .py file.
but when trying to run python3 MyFile.PY
in Termial on my chromebook
i recive this:
FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver'
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://chromedriver.chromium.org/home
Does any one here know how i can solve this at my chromebook, ive tried downloading chromedriver for linux and placing it in my Linux-files together whit MyFile.PY