Selenium – setSpeed 

setSpeed(value)
Arguments:
* value – the number of milliseconds to pause after operation Set execution speed (i.e., set the millisecond length of a delay which will follow each selenium operation). By default, there is no such delay, i.e., the delay is 0 milliseconds.

SetSpeed example
In this example I am going to set a speed for selenium script to execute after a pause of 5000 milliseconds

<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>

What happens here is the script will pause for 5000 milliseconds before it executes the next command. This is ideal when there are timeout issues on a site.


Author: Pavandeep Puddupakkam on May 2, 2010
Category: Selenium IDE, Selenium RC, Software Testing
Tags: , , ,
Google Webdriver Forum -The Online Community for Google Webdriver and Selenium RC Users and Professionals

Leave a Reply

Last articles