A demonstration of my page object pattern for Sahi (Javascript) by Brian Ray ~ brian [at] qualityshepherd.com
NOTE: This code requires Sahi v5.x or later...
The code herein are working, example Sahi tests that make use of page objects. To run the code:
- Install and start Sahi
- Add the files to your scripts folder ([sahi folder]/userdata/scripts/)
- Run each individual test or
- Run the pageObjectTests.suite via bin/runPageObjectTests.bat
For more information, see my blog post: http://qualityshepherd.com/2013/10/using-page-objects-in-sahi-javascript/