'an error webdriver (get) when using selenium in google colab

I tried to search the answers by Google, but they didn't work. I feel quite upset now. enter image description here




Solution 1:[1]

You're using Chrome driver from webdriver. Thus, you have to install Chrome in your environement. Since Google colab runs the python kernel in the isolated which does not have any Chrome or GUI packages.

You need to run in the different environment with pre-installed chrome instead of Google Colab.

Solution 2:[2]

I make a library to make it easier

!pip install kora -q
from kora.selenium import wd as browser

browser.get('https://www.google.com')

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 kha
Solution 2 korakot