Have I misunderstood how to set up Selenium RC with Python? -



Have I misunderstood how to set up Selenium RC with Python? -

i having difficulty selenium rc. when trying run scripts in python, see message "cannot import name webdriver".

i'm missing basic. allow me explain every step i've taken (better granular vague...):

download , set java development kit , set paths. command 'java -version' yields "1.6.0_26"

download selenium rc standalone server.

started server

downloaded , installed python 2.6 32-bit version

downloaded python bindings http://selenium.googlecode.com/files/selenium-remote-control-1.0.3.zip. zip file, have copied selenium.py python27\libs directory.

created script in selenium ide. exported python.

when seek run script idle, see message "importerror: cannot import name webdriver". script i'm using starts

from selenium import webdriver

i see no definition of function named 'webdriver' in selenium.py. wrong file? quite confused.

scripts don't refer 'import webdriver' work fine.

googling unhelpful, , tutorials either incomplete or assume linux environment (i'm using windows).

is issue selenium 1 vs selenium 2? need selenium 2 bindings? different mine?

any assistance appreciated.

webdriver part of selenium 2. installing selenium 1 bindings , trying run webdriver. won't work.

furthermore, webdriver api eliminates need server component (webdriver different selenium-rc). utilize webdriver, all need python bindings selenium 2.

the easiest way install them pip or easy_install

pip install selenium

or

easy_install selenium

python selenium selenium-rc

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -