When I use Selenium RC there is a method setSpeed as:
selenium.setSpeed(“500”);
What is the way to control speed of browser in Selenium WebDriver?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
Thread.Sleep(500)(or equivalent) in whatever language you are using to run webdriver. This will cause the thread to pause for an exact number of milliseconds.Alternatively you can use explicit or implicit waits described here.
Explicit waits allow you to define an
ExpectedCondition. Webdriver will check the condition every 500 milliseconds until it returns true, (after which execution will resume immediately).Implicit waits cause webdriver to keep retry attempting to locate something in the DOM. Execution will resume immediately once the element is found.
Note that neither implicit nor explicit waits will guarantee a 500 millisecond pause.