executeDevToolsMethod

Execute a method call over the DevTools protocol. See the DevTools protocol documentation for details of supported methods and the expected syntax for parameters.

If an error occurs the returned future is completed exceptionally, otherwise its value is asynchronously set to the method result.

Call addEventListener to subscribe to events.

Return

return a future with the method result if the method was executed successfully

Parameters

method

the method name


open fun executeDevToolsMethod(method: String, parametersAsJson: String): CompletableFuture<String>

Execute a method call over the DevTools protocol. See the DevTools protocol documentation for details of supported methods and the expected syntax for parameters.

If an error occurs the returned future is completed exceptionally, otherwise its value is asynchronously set to the method result.

Call addEventListener to subscribe to events.

Return

return a future with the method result if the method was executed successfully

Parameters

method

the method name

parametersAsJson

JSON object with parameters, or null if no parameters are needed