Forum: Ruby execute_async_script v/s execute_script in Selenium web-driver

Posted by Love U Ruby (my-ruby)
on 2013-02-07 21:52
In Selenium web-driver we know web-driver has 2 methods -

(WebDriver::Element, ...) execute_async_script(script, *args) and

(WebDriver::Element, ...) execute_script(script, *args).

Now with the help of any code where "*args" would be
web-driver::element, Can  any explain the differences between them? In
what situations we must use what ?


Thanks
Posted by Joel Pearson (virtuoso)
on 2013-02-07 22:06
The documentation is here: 
http://selenium.googlecode.com/svn/trunk/docs/api/...

Basically the async version doesn't wait for a return, your script 
continues to execute.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.