Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium IDE - Set default speed to slow

Everytime when I run Selenium IDE the speed control is set to "fast" It is possible to set the speed control per default to "slow"?

like image 259
LaPhi Avatar asked Jul 18 '11 15:07

LaPhi


People also ask

How do I make Selenium run slower?

Basically, you would want to reduce a speed of Selenium WebDriver to make sure that your script does not fail as the element does not appear or takes time to appear. You can mostly do this by implementing Implicit Wait or Explicit wait. WebDriverWait wait = new WebDriverWait(driver, 10); WebElement element = wait.

How do I change speed of Selenium IDE?

To expand on MacGyver's response, you can put the setSpeed anywhere in your tests, not just at the beginning. For example, you can use setSpeed = 0 when checking for static elements on a page, then change setSpeed to something greater to test things like text entry, etc.

What is the default selenium speed?

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.


1 Answers

Put this command in the beginning of your script:

Command: setSpeed
Target: 3000

The IDE has a slow speed and a fast speed. However, this is more precise so you can control the delay per command in milliseconds. This example will have it wait 3 seconds per command.

like image 84
MacGyver Avatar answered Oct 04 '22 11:10

MacGyver