Using Thread.sleep() in Webdriver Sampler

3,617 views
Skip to first unread message

Tom Tran

unread,
Aug 11, 2016, 5:17:05 AM8/11/16
to jmeter-plugins
Hi all,

With Selenium Webdriver, we can use Thread.sleep(milliseconds) to pause the script for an amount of time.

Can we do it in Webdriver Sampler? If yes, please help to show me an example.

Many thanks.

gli...@gmail.com

unread,
Aug 11, 2016, 9:04:37 AM8/11/16
to jmeter-plugins
You just use the same method in the WebDriver Sampler like:

java.lang.Thread.sleep(milliseconds)

Demo:















References:

Tom Tran

unread,
Aug 11, 2016, 12:26:46 PM8/11/16
to jmeter-plugins, gli...@gmail.com
Many many many many thanks Glinius...

I solved my problem.
Reply all
Reply to author
Forward
0 new messages