chore(docs): document Frame class (#6188)

* chore: document Frame class
This commit is contained in:
Jack Franklin
2020-07-09 14:22:58 +01:00
committed by GitHub
parent b9667f9331
commit 24cb6a28ad
53 changed files with 1200 additions and 183 deletions

View File

@@ -4,6 +4,8 @@
## Frame.focus() method
This method fetches an element with `selector` and focuses it.
<b>Signature:</b>
```typescript
@@ -14,9 +16,13 @@ focus(selector: string): Promise<void>;
| Parameter | Type | Description |
| --- | --- | --- |
| selector | string | |
| selector | string | the selector for the element to focus. If there are multiple elements, the first will be focused. |
<b>Returns:</b>
Promise&lt;void&gt;
## Remarks
If there's no element matching `selector`<!-- -->, the method throws an error.