Installation guide for FireWatir:
- Install Firefox 1.5 or higher version (http://www.mozilla.com/firefox/
). It may or may not run with earlier version of Firefox.
- Install JSSh XPI using following steps:
- Open Firefox browser.
- From File menu select Open File option.
- Navigate to the path where "JSSh XPI" folder is located. Select 'XPI' inside this folder and click open.
- Wait till a dialog appear stating that do you want to install this extension. Click install.
- Close Firefox. Restart it from command prompt using "<Firefox installation directory>/firefox.exe -jssh". Make sure you give "-jssh" as parameter other wise Firefox will not start JSSh shell.
- To check if JSSh is listening on port 9997 run command "telnet localhost 9997" from command prompt.
- Install Firewatir using the following command
gem install firewatir
- Go to gem install directory in ruby installation. Go to Firewatir gem directory and then to unit tests directory. Run "mozilla_all_tests.rb" to run the unit test cases. Make sure you have started Firefox manually as stated in step 2.5 if you are using Mac machine. On windows and Linux just run "mozilla_all_tests.rb".
- If "attach_new_browser" test fails then,
- Make sure that pop ups are allowed in Firefox. To allow the pop up run this test alone and then allow the pop ups.
- Make sure that Firefox settings should be open new window instead of new tab when link is clicked.
The information in step 5 needs to be retained. These instructions need to be followed to get the Firefox#attach command to work.