user11435774
user11435774

Reputation:

How do you fix this attribute firefox error for selenium using python3

I am trying to use selenium for the first time, but I keep getting errors.

I have tried uninstalling firefox, changing my path variable so firefox would be recognized but nothing seem to work. Note: I have added paths with the semicolon but didnt delete anything

Heres some code:

  from selenium import webdriver


  driver=webdriver.FireFox()

The error for the above code:

AttributeError: module selenium.webdriver has no attribute Firefox

I even tried this after typing in: from selenium.webdriver import Firefox It was suggested by one of the many sources and documentation i consulted.

Upvotes: 0

Views: 84

Answers (1)

buran
buran

Reputation: 14233

It should be driver=webdriver.Firefox(), i.e. only one capital F.

here is the sample usage from the docs

Upvotes: 2

Related Questions