RE: How to use WebDriver,ExecuteAsyncScript?

If someone can explain WebDriver,ExecuteAsyncScript function usage with some live example.

Virender Singh Professor Asked on August 28, 2014 in Selenium WebDriver.
Add Comment
1 Answers

Hi Virender,

The syntax for executeAsyncScript is:

Here, I have included 2 examples.

Example #1: Performing a sleep in the browser under test.

Example #2: Synchronizing a test with an AJAX application:

I hope it may help you.

Regards,
Vaidy

Doctor Answered on September 1, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.