File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ Traverse into the shadow DOM of an element.
14
14
## Syntax
15
15
16
16
``` javascript
17
- .shadow (selector )
18
- .shadow (selector, options)
17
+ .shadow ()
18
+ .shadow (options)
19
19
```
20
20
21
21
### Usage
@@ -34,6 +34,17 @@ cy.exec('npm start').shadow() // Errors, 'exec' does not yield DOM element
34
34
cy .get (' .not-a-shadow-host' ).shadow () // Errors, subject must host a shadow root
35
35
```
36
36
37
+ ### Arguments
38
+
39
+ <Icon name = " angle-right" /> ** options _ (Object)_ **
40
+
41
+ Pass in an options object to change the default behavior of ` .shadow() ` .
42
+
43
+ | Option | Default | Description |
44
+ | --------- | ----------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
45
+ | ` log ` | ` true ` | Displays the command in the [ Command log] ( /app/core-concepts/open-mode#Command-Log ) |
46
+ | ` timeout ` | [ ` defaultCommandTimeout ` ] ( /app/references/configuration#Timeouts ) | Time to wait for ` cy.get() ` to resolve before [ timing out] ( #Timeouts ) |
47
+
37
48
<HeaderYields />
38
49
39
50
- ` .shadow() ` yields the new DOM element(s) it found.
You can’t perform that action at this time.
0 commit comments