Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 9e03b78

Browse files
owenmeadjuliemr
authored andcommitted
docs(debugging): Add note about limiting scope when using clientSideScripts
1 parent 05eb42b commit 9e03b78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/debugging.md

+3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ used from the browser's console.
7676
// In the browser console (e.g. from Chrome Dev Tools)
7777
> window.clientSideScripts.findInputs('username');
7878
// Should return the input element with model 'username'.
79+
80+
// You can also limit the scope of the locator
81+
> window.clientSideScripts.findInputs('username', document.getElementById('#myEl'));
7982
```
8083

8184

0 commit comments

Comments
 (0)