I want to run selenium in Google Colab through gecko driver, but it told me: executable needs to be in PATH
I uploaded firefox and gecko driver in Google Colab and copied gecko driver's path. The code worked well on my PC.
firefox and gecko driver in google clob, but an error occurred.
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait as wait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
import time
from selenium.webdriver.support import ui
from selenium.webdriver.common.by import By
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.common.exceptions import TimeoutException
driver = webdriver.Firefox(executable_path=r'content/geckodriver.exe')
WebDriverException: Message: 'content/geckodriver.exe' executable needs to be in PATH.
I want gecko driver should be known by selenium in Google Colab environment.