Selenium driven mode

Skip the page content navigation if you do not require links to content sections within this page.

Page Content Navigation

Skip the primary navigation if you do not want to read it as the next section.


Primary navigation

Home Clients Non profits Webfactory Support About us Services

Skip the main content if you do not want to read it as the next section.


Selenium is an excellent way of running automated acceptance tests.

However, the documentation doesn't make it entirely obvious how to run it in "driven mode", such that you can write your tests in code.

Thanks to some pointers from Paul Cannon at Novell, we can now run tests that look like this:
    s.execute('open', 'http://www.google.com')
s.execute('type', 'q', 'fsm')
s.execute('click', 'btnG')
The tarball shows how to get started (with Python on Linux).  It should be easy enough to get it working on Windows, too. 

One of the problems with running Selenium tests is that due to cross-site scripting protection, the selenium approach makes it tricky to run tests against sites other than localhost.  This hack just disables all the XSS security using a custom user.js for firefox.  With IE, I believe you can achieve a similar effect by renaming your test runner HTML page with a HDA extension.

 




The following page sections include static unchanging site components such as the page banner, useful links and copyright information. Return to the top of page if you want to start again.


Page Extras

Skip the main banner if you do not want to read it as the next section.


Page Banner


End of page. You can return to the page content navigation from here.