Package io.karatelabs.driver.cdp
Class CdpResponse
java.lang.Object
io.karatelabs.driver.cdp.CdpResponse
Wrapper for Chrome DevTools Protocol responses with JSONPath extraction.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TGet value from any part of response using JSONPath.getError()intgetId()getRaw()<T> TGet value from result using JSONPath.getResultAsBoolean(String path) Get value from result as Boolean.getResultAsInt(String path) Get value from result as Integer.getResultAsString(String path) Get value from result as String.booleanisError()toString()
-
Constructor Details
-
CdpResponse
-
-
Method Details
-
getId
public int getId() -
isError
public boolean isError() -
getError
-
getErrorMessage
-
getErrorCode
-
getResult
-
getRaw
-
getResult
Get value from result using JSONPath. Example: getResult("frameId") or getResult("result.value") -
getResultAsString
Get value from result as String. -
getResultAsInt
Get value from result as Integer. -
getResultAsBoolean
Get value from result as Boolean. -
get
Get value from any part of response using JSONPath. -
toString
-