0

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,

WDS.sampleResult.sampleEnd()

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

This is as simple as:

 java.lang.Thread.sleep(5000)

See the following reference materials:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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