Annotation Type Delay

public @interface Delay

Annotation that marks a class or method that all selenium API calls should be delayed, that is Thread.sleep(). The value of the Delay annotation is the number of milliseconds each command should sleep. The default value is 1000ms.

Note that the Delay annotation is only used by default in the development enviroment. If the Delay annotation is found when executing in test or production it is ignored.

Usage for a method:

Optional Element Summary
 int value
          Number of milliseconds the delay should wait for.


public abstract int value
Number of milliseconds the delay should wait for. The default value is 1000.

The number of milliseconds.