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

Santi santiycr at gmail.com
Tue Apr 23 11:55:19 EDT 2013


On Monday, April 22, 2013 8:24:40 AM UTC-4, arif7... at gmail.com wrote:
> 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
> 
> >>>from selenium import webdriver
> 
> >>>webdriver.Firefox()
> 
> 
> 
> ----------
> 
> 
> 
> 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.

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



More information about the Python-list mailing list