Selenium Webdriver + Python (How to get started ??)

A

arif7d.auto

Note that:- I have some experience of using Selenium IDE and Webdriver (Java). but no prior experience of Python.

Now there is a project for which I will need to work with webdriver + Python.

So far I have done following steps..

Install JDK
Setup Eclipse
download & Installed Python v3.3.1
Download & Installed Pydev (for Eclipse) also configured
download & installed (Distribute + PIP) http://www.lfd.uci.edu/~gohlke/pythonlibs/#pip
Installed Selenium using command prompt

Running following commands from windows 7 command prompt, successfully opens firefox browser

python
----------

ISSUE is that, I do not know exact steps of creating a python webdriver test project.

I create new Pydev project with a "src" folder and also used sample python code from internet but selenium classes cannot be recognized. I have tried various approaches to import libraries but none seems to work. Any one can guide me what i need to do step by step to successfully run a simple test via python webdriver!! (eclipse pydev)

Thank you.
 
S

Santi

Note that:- I have some experience of using Selenium IDE and Webdriver (Java). but no prior experience of Python.



Now there is a project for which I will need to work with webdriver + Python.



So far I have done following steps..



Install JDK

Setup Eclipse

download & Installed Python v3.3.1

Download & Installed Pydev (for Eclipse) also configured

download & installed (Distribute + PIP) http://www.lfd.uci.edu/~gohlke/pythonlibs/#pip

Installed Selenium using command prompt



Running following commands from windows 7 command prompt, successfully opens firefox browser



python




----------



ISSUE is that, I do not know exact steps of creating a python webdriver test project.



I create new Pydev project with a "src" folder and also used sample python code from internet but selenium classes cannot be recognized. I have tried various approaches to import libraries but none seems to work. Any one can guide me what i need to do step by step to successfully run a simple testvia python webdriver!! (eclipse pydev)



Thank you.

I'm guessing your PyDev setup is not configured to use pip and your dependencies?
How about this: http://stackoverflow.com/questions/4631377/unresolved-import-issues-with-pydev-and-eclipse
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top