-
public final class EvaluateRequestRequest object containing input parameters for the RuntimeDomain.evaluate command.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringexpressionprivate final StringobjectGroupprivate final BooleanincludeCommandLineAPIprivate final Booleansilentprivate final IntegercontextIdprivate final BooleanreturnByValueprivate final BooleangeneratePreviewprivate final BooleanuserGestureprivate final BooleanawaitPromiseprivate final BooleanthrowOnSideEffectprivate final Doubletimeoutprivate final BooleandisableBreaksprivate final BooleanreplModeprivate final BooleanallowUnsafeEvalBlockedByCSP
-
Constructor Summary
Constructors Constructor Description EvaluateRequest(String expression, String objectGroup, Boolean includeCommandLineAPI, Boolean silent, Integer contextId, Boolean returnByValue, Boolean generatePreview, Boolean userGesture, Boolean awaitPromise, Boolean throwOnSideEffect, Double timeout, Boolean disableBreaks, Boolean replMode, Boolean allowUnsafeEvalBlockedByCSP)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Stringcomponent2()final Booleancomponent3()final Booleancomponent4()final Integercomponent5()final Booleancomponent6()final Booleancomponent7()final Booleancomponent8()final Booleancomponent9()final Booleancomponent10()final Doublecomponent11()final Booleancomponent12()final Booleancomponent13()final Booleancomponent14()final EvaluateRequestcopy(String expression, String objectGroup, Boolean includeCommandLineAPI, Boolean silent, Integer contextId, Boolean returnByValue, Boolean generatePreview, Boolean userGesture, Boolean awaitPromise, Boolean throwOnSideEffect, Double timeout, Boolean disableBreaks, Boolean replMode, Boolean allowUnsafeEvalBlockedByCSP)final StringgetExpression()Expression to evaluate. final StringgetObjectGroup()Symbolic group name that can be used to release multiple objects. final BooleangetIncludeCommandLineAPI()Determines whether Command Line API should be available during the evaluation. final BooleangetSilent()In silent mode exceptions thrown during evaluation are not reported and do not pause execution. final IntegergetContextId()Specifies in which execution context to perform evaluation. final BooleangetReturnByValue()Whether the result is expected to be a JSON object that should be sent by value. final BooleangetGeneratePreview()Whether preview should be generated for the result. final BooleangetUserGesture()Whether execution should be treated as initiated by user in the UI. final BooleangetAwaitPromise()Whether execution should awaitfor resulting value and return once awaited promise is resolved.final BooleangetThrowOnSideEffect()Whether to throw an exception if side effect cannot be ruled out during evaluation. final DoublegetTimeout()Terminate execution after timing out (number of milliseconds). final BooleangetDisableBreaks()Disable breakpoints during execution. final BooleangetReplMode()Setting this flag to true enables letre-declaration and top-levelawait.final BooleangetAllowUnsafeEvalBlockedByCSP()The Content Security Policy (CSP) for the target might block 'unsafe-eval' which includes eval(), Function(), setTimeout() and setInterval() when called with non-callable arguments. -
-
Constructor Detail
-
EvaluateRequest
EvaluateRequest(String expression, String objectGroup, Boolean includeCommandLineAPI, Boolean silent, Integer contextId, Boolean returnByValue, Boolean generatePreview, Boolean userGesture, Boolean awaitPromise, Boolean throwOnSideEffect, Double timeout, Boolean disableBreaks, Boolean replMode, Boolean allowUnsafeEvalBlockedByCSP)
-
-
Method Detail
-
component1
final String component1()
-
component2
final String component2()
-
component3
final Boolean component3()
-
component4
final Boolean component4()
-
component5
final Integer component5()
-
component6
final Boolean component6()
-
component7
final Boolean component7()
-
component8
final Boolean component8()
-
component9
final Boolean component9()
-
component10
final Boolean component10()
-
component11
final Double component11()
-
component12
final Boolean component12()
-
component13
final Boolean component13()
-
component14
final Boolean component14()
-
copy
final EvaluateRequest copy(String expression, String objectGroup, Boolean includeCommandLineAPI, Boolean silent, Integer contextId, Boolean returnByValue, Boolean generatePreview, Boolean userGesture, Boolean awaitPromise, Boolean throwOnSideEffect, Double timeout, Boolean disableBreaks, Boolean replMode, Boolean allowUnsafeEvalBlockedByCSP)
-
getExpression
final String getExpression()
Expression to evaluate.
-
getObjectGroup
final String getObjectGroup()
Symbolic group name that can be used to release multiple objects.
-
getIncludeCommandLineAPI
final Boolean getIncludeCommandLineAPI()
Determines whether Command Line API should be available during the evaluation.
-
getSilent
final Boolean getSilent()
In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides
setPauseOnExceptionstate.
-
getContextId
final Integer getContextId()
Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
-
getReturnByValue
final Boolean getReturnByValue()
Whether the result is expected to be a JSON object that should be sent by value.
-
getGeneratePreview
final Boolean getGeneratePreview()
Whether preview should be generated for the result.
-
getUserGesture
final Boolean getUserGesture()
Whether execution should be treated as initiated by user in the UI.
-
getAwaitPromise
final Boolean getAwaitPromise()
Whether execution should
awaitfor resulting value and return once awaited promise is resolved.
-
getThrowOnSideEffect
final Boolean getThrowOnSideEffect()
Whether to throw an exception if side effect cannot be ruled out during evaluation. This implies
disableBreaksbelow.
-
getTimeout
final Double getTimeout()
Terminate execution after timing out (number of milliseconds).
-
getDisableBreaks
final Boolean getDisableBreaks()
Disable breakpoints during execution.
-
getReplMode
final Boolean getReplMode()
Setting this flag to true enables
letre-declaration and top-levelawait. Note thatletvariables can only be re-declared if they originate fromreplModethemselves.
-
getAllowUnsafeEvalBlockedByCSP
final Boolean getAllowUnsafeEvalBlockedByCSP()
The Content Security Policy (CSP) for the target might block 'unsafe-eval' which includes eval(), Function(), setTimeout() and setInterval() when called with non-callable arguments. This flag bypasses CSP for this evaluation and allows unsafe-eval. Defaults to true.
-
-
-
-