Ask coding questions

← Back to all posts
Chrome Driver
Ashenguard (9)

Is there anyway to use chrome driver?

Comments
hotnewtop
elonmaks (45)

Hi, @Ashenguard . Please, install selenium module with pip and import the webdriver from the selenium.

Just like this:

pip install selenium

and second you should do this:

from selenium import webdriver

Your code will look like this:

driver = webdriver.Chrome()
driver.get('https://www.repl.it/')
print(driver.title)
time.sleep(5)
driver.quit()

It's simply example, you can write you own variant.

StudentLevi (5)

@elonmaks using python or pygame?