Installing Selenium and WebDriver

Hi. I am going back to basics with some coding. I have the following code, written in Sublime Text.

from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager

driver = webdriver.Chrome(ChromeDriverManager().install())

driver = webdriver.Chrome() #This is whatever webdriver you have installed
driver.get(https://www.disney.com) #Replace with desired URL
driver.quit

The doesn’t run and I’m not sure I have installed either Python, Selenium or WebDriver properly. When I open CMD, and type ‘pip install selenium’, I get an error saying ‘pip is not a recognised command’. Where do I start with this?

Thanks

By “WebDriver”, I assume you mean this.

This is enough for me to know what you’re on Windows, but that’s about it.

Let’s begin at the beginning: exactly what steps did you take in order to install Python?