Geteval

Gets the result of evaluating the specified JavaScript snippet. The snippet may have multiple lines, but only the result of the last line will be returned. Note that, by default, the snippet will run in the context of the "selenium" object itself, so this will refer to the Selenium object, and window will refer to the top-level runner test window, not the window of your application.

Required Attributes
property
the name of the property to save the value to.
script
Usage Examples
Example #1
<selenium baseurl="http://www.google.com">
   
<open url="/" />
   
<waitForPageToLoad timeout="30000" />
   
<open url="/finance" />
   
<waitForPageToLoad timeout="30000" />
   
<getEval script="history.go(-1)" />
   
<waitForPageToLoad timeout="30000" />
</selenium>