Myself used web-driver sampler to run the JMeter script. The script is running fine, but I need to pause my page for 5 seconds after getting log in. This has to be done before my browser gets closed,


I already tried below mentioned script to pause the browser for few seconds but it doesn't works,

var pkg = JavaImporter(org.openqa.selenium, org.openqa.selenium.support.ui)
var wait = new pkg.WebDriverWait(WDS.browser, 10000)

Please suggest me a solution to overcome this issue.

1 Answer 1


This is as simple as:


See the following reference materials:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.