3

I downloaded the Selenium Python package including server, but I get an error:

File "<pyshell#6>", line 1, in <module>
from selenium import webdriver
ImportError: cannot import name webdriver
1
  • 2
    Did you actually install the package? Do you use pip or easyinstall? Commented Jan 17, 2013 at 18:47

1 Answer 1

2

There are two versions of Selenium. There is a Java server, which you can interface with Python using Selenium RC, and there is a newer Selenium Webdriver with which you can write stand-alone scripts (without running the Java server)

It sounds like you might have downloaded the Selenium RC, but not Selenium Webdriver. For from selenium import webdriver to work, you must install Selenium Webdriver.

To do that run

pip install -U selenium
Sign up to request clarification or add additional context in comments.

1 Comment

Did not fix my problem either, and I had this working previously.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.