video 5-1 TBD

1

He uses pycharm here, quick tutorial here, ProgrammingKnowledge2 I'm trying this community version found here https://www.jetbrains.com/pycharm/download/other/

Open Python in apps

2

in pycharm go create new project

If we paste example code from https://pypi.org/project/selenium/ in a new python file, (i named demo.py), it won't work

from selenium import webdriver


driver = webdriver.Chrome()
driver.get("https://selenium.dev")
driver.quit()

3

**IMportant note, see in docs, drivers aren't important now, but in the furture come back here to this step, to get to part in tutorial explaining drivers, and how to get them, and where to put them, and how to set path variables, etc.

for now: If we paste example code from https://pypi.org/project/selenium/ in a new python file, (i named demo.py) we can run, ** I perfer this example, import time to run

from selenium import webdriver
import time

driver = webdriver.Chrome()
driver.get("https://google.com")
time.sleep(2.5)
driver.quit()

4

get command form https://pypi.org/project/selenium

from selenium import webdriver

driver = webdriver.Chrome()
driver.get("https://selenium.dev")
driver.quit()
                        

This will not work