I’m posting this because I couldn’t find it anywhere, and, while it’s stupidly simple and pretty obvious, it’s poorly poorly documented.
So recently I was setting up Selenium tests using the SeleniumHQ plugin in Jenkins. I built my tests in the Firefox IDE, where they worked fine since I could adjust the execution timing, but failed when ran via Selenium Standalone on my Ubuntu server. Turns out the the tests were running too fast for the page to load with enough time, and the html test suite files created by the IDE weren’t retaining the speed settings.
I realized that I needed to manually assert Selenium’s setSpeed parameter, but for the life of me I couldn’t find documentation on how to set it using the htmlSuite. After a few hours of scouring various blog posts and discussion boards, the answer revealed itself. Simply insert “setSpeed” as a table row variable AFTER you set the “open” variable.
You can set it via the FireFox IDE by selecting it from the “Command” choices in the “Table” window.
<tr> <td>open</td> <td>/</td> <td></td> </tr> <tr> <td>setSpeed</td> <td>5000</td> <td></td> </tr> <tr> <td>clickAndWait</td> <td>link=Unltdwiki</td> <td></td> </tr> <tr> <td>assertTitle</td> <td>Unltdwiki</td> <td></td> </tr>
Hope this saves someone some time.