|
@@ -7,7 +7,8 @@ def run_javascript(code: str, *, timeout: float = 1.0) -> AwaitableResponse:
|
|
|
|
|
|
This function runs arbitrary JavaScript code on a page that is executed in the browser.
|
|
|
The client must be connected before this function is called.
|
|
|
- To access a client-side object by ID, use the JavaScript function `getElement()`.
|
|
|
+ To access a client-side Vue component or HTML element by ID,
|
|
|
+ use the JavaScript functions `getElement()` or `getHtmlElement()`.
|
|
|
|
|
|
If the function is awaited, the result of the JavaScript code is returned.
|
|
|
Otherwise, the JavaScript code is executed without waiting for a response.
|