Web Testing using Mozilla Firefox and Selenium

From Kb

Jump to: navigation, search

Contact Article Author | Blog of Article Author | FirstPartners.net Home | LinkedIn profile of Author


Python in Eclipse Setup

Selenium writes it's (automated) tests as Python. Hence the optional Python setup steps

Setup of Firefox and Selenium

Running Selenium

  1. Record Python (or Ruby) Script using Selenium IDE in Firefox
    1. Right click to add assertions into test script.
  2. Save to sensible location (e.g. within a Eclipse Pydev project)
  3. Run the Selenium RC with a command similar to
java -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=80 -jar C:\selenium-remote-control-0.9.0\selenium-server.jar
 -firefoxProfileTemplate C:\projects\AutomatedTesting\aw52d9lu.selenium
  1. Run the python /ruby test script in whatever (J)Ruby or (J)Python
  • You should be able to view your browser retracing it's steps and testing assertions
Personal tools