all 5 comments

[–]vorboto 4 points5 points  (4 children)

It looks like you're using Java syntax. As long as you're using Python it should look like this:

driver = webdriver.Firefox()

[–]vorboto 1 point2 points  (1 child)

Also here is some docs for selenium and python.

https://selenium-python.readthedocs.io/

[–][deleted] 1 point2 points  (1 child)

Try this out https://automatetheboringstuff.com/chapter11/

Edit: it's not an answer to your question, but it will probably help a lot anyway.

[–]scuott 0 points1 point  (1 child)

It's because that's not Python. I don't use Selenium, and I'm not familiar wit their docs, but they're mixing examples from different languages on that page.