We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1de1c84 commit c0f3050Copy full SHA for c0f3050
README.md
@@ -1,2 +1,13 @@
1
# queryByRole
2
This is a implementation of `queryByRole` for browser.
3
+
4
+## Usage
5
6
+You'll get the button whose accessible name is "Click!" from window with the following code.
7
+```ts
8
+const targetWindow = createTargetWindow(window);
9
+const buttonRoleElements = targetWindow.queryByRole("button", {
10
+ name: "Click!",
11
+});
12
+console.log(buttonRoleElements); // -> [button]
13
+```
0 commit comments