assertEval (UI Automation - Interrogation)
Compatible with:
- Purpose
- Generated from getEval(script)
- script - the JavaScript snippet to run
- Executes the script given in target and compares the result with pattern given in Value. It will also check whether the script is with valid syntax or not.
- Syntax
- assertEval(script, pattern)
- Target
- script
- Value
- pattern
- Return Value
- The results of evaluating the snippet 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 "QaSCRIBE" object itself, so
this
will refer to the QaSCRIBE object. Usewindow
to refer to the window of your application