Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6129767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:46:51+00:00 2026-05-23T16:46:51+00:00

I am having difficulty with Selenium RC. When trying to run scripts in Python,

  • 0

I am having difficulty with Selenium RC. When trying to run scripts in Python, I see the message “Cannot import name webdriver”.

I’m likely missing something very basic. Let me explain every step I’ve taken (better to be too granular than too vague…):

  1. Download and set up Java Development Kit and set Paths. The command ‘Java -version’ yields “1.6.0_26”

  2. Download the Selenium RC standalone server.

  3. Started the server

  4. Downloaded and installed Python 2.6 32-bit version

  5. Downloaded the Python bindings from http://selenium.googlecode.com/files/selenium-remote-control-1.0.3.zip. From the zip file, I have copied selenium.py into my Python27\Libs directory.

  6. Created a script in Selenium IDE. Exported for Python.

When I try to run the script from IDLE, I see the message “ImportError: cannot import name webdriver”. The script I’m using starts

from selenium import webdriver

I see no definition of a function named ‘webdriver’ in selenium.py. Is this the wrong file? I am quite confused.

Scripts that don’t refer to ‘import webdriver’ work just fine.

Googling is very unhelpful, and most tutorials are either incomplete or assume a Linux environment (I’m using Windows).

Is this an issue with Selenium 1 vs Selenium 2? Do I need Selenium 2 bindings? Are they different to mine?

Any assistance is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:46:51+00:00Added an answer on May 23, 2026 at 4:46 pm

    WebDriver is part of Selenium 2. You are installing the Selenium 1 bindings and then trying to run WebDriver. That won’t work.

    Furthermore, WebDriver API eliminates the need for the Server component (WebDriver is different than Selenium-RC). To use WebDriver, All you need are the Python bindings for Selenium 2.

    The easiest way to install them is with pip or easy_install

    pip install selenium
    

    or

    easy_install selenium
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having difficulty determining if the body of a text email message is
I'm having difficulty using MooseX::Declare properly when calling BUILDARGS. I'm trying to create an
I'm having difficulty sending an integer to a serial port... I'm trying stuff like
I'm having difficulty trying to figure this out. I'm not even sure if it's
In PHP I am having difficulty trying to extract row data from one SQL
I'm having difficulty working with the animation blocks. I'm trying to have the first
I'm having difficulty installing python 3 on snow leopard. I'm having difficulty because I
I'm having difficulty getting python 2.4 to connect to gmail's smtp server. My below
I'm having difficulty trying to remove a div with a particular ID, and its
I am having difficulty finding specifically what I'm searching for, most likely because I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.