Execute Script versus Invoke Script
The Web Page control methods ExecuteScript and InvokeScript activate a script contained within a webpage. The key differences between these methods are described here:
ExecuteScript() – Allows any script to be used, including referenced scripts. This method, however, does not yield a result.
InvokeScript() – Only allows a script inside the source code of the page to be used and this method does yield a result. Note that InvokeScript() supports all client script languages (Javascript, and so on). The method can pass parameters to the script. The parameters are passed to the script in the order in which they appear in the source code. Parameters that are not defined by the method remain undefined for the script and can cause the method to fail.
Privacy | Trademarks | Terms of Use | Feedback
Updated: 01 July 2024
© 2016 - 2024 Pegasystems Inc. Cambridge, MA All rights reserved.