import {LastScriptExecution} from '@serenity-js/protractor/lib/screenplay/questions'
LastScriptExecution
Returns the result of last script executed via ExecuteScript
Tests:
- LastScriptExecution
- ExecuteSynchronousScript complains if the script has failed
- LastScriptExecution when used with ExecuteScript.sync allows the actor to retrieve the result of the script execution
- LastScriptExecution when used with ExecuteScript.sync returns null if the script did not return any result
- LastScriptExecution when used with ExecuteScript.async allows the actor to retrieve the result of the script execution
- LastScriptExecution when used with ExecuteScript.async returns null if the script did not return any result
- LastScriptExecution complains if the script hasn't been executed yet
Static Method Summary
Static Public Methods | ||
public static |
Enables asserting on the result of a function executed via ExecuteScript. |
Static Public Methods
public static result(): Question<R> source
Enables asserting on the result of a function executed via ExecuteScript.