@@ -21,9 +21,9 @@ Currently, the only key supported is `Tab`.
2121:::caution
2222
2323<strong >Supported Browsers:</strong >
24- This command is supported in chromium browsers and Firefox versions >=
25- v135. WebKit is not supported. This command will fail if executed in a browser that
26- does not support it.
24+ This command is supported in chromium browsers and Firefox versions >= v135. WebKit
25+ is not supported. This command will fail if executed in a browser that does not support
26+ it.
2727
2828:::
2929
@@ -61,7 +61,7 @@ cy.get('input.second').should('have.focus')
6161cy .get (' input.first' ).focus ()
6262cy .press (Cypress .Keyboard .Keys .TAB )
6363 // Errors because press yields null
64- .should (' have.focus' )
64+ .should (' have.focus' )
6565```
6666
6767### Arguments
@@ -80,10 +80,10 @@ The key to press. The supported values are available on [`Cypress.Keyboard.Keys`
8080
8181Pass in an options object to change the default behavior of ` .press() ` .
8282
83- | Option | Default | Description |
84- | ---------------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------ ----------------------------------------------------------------------------------- |
85- | ` log ` | ` true ` | Displays the command in the [ Command log] ( /app/core-concepts/open-mode#Command-Log ) |
86- | ` timeout ` | [ ` defaultCommandTimeout ` ] ( /app/references/configuration#Timeouts ) | Time to wait for ` cy.press() ` to resolve before timing out |
83+ | Option | Default | Description |
84+ | --------- | ----------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
85+ | ` log ` | ` true ` | Displays the command in the [ Command log] ( /app/core-concepts/open-mode#Command-Log ) |
86+ | ` timeout ` | [ ` defaultCommandTimeout ` ] ( /app/references/configuration#Timeouts ) | Time to wait for ` cy.press() ` to resolve before timing out |
8787
8888<HeaderYields />
8989
@@ -122,8 +122,8 @@ If your application prevents the default behavior of the `beforeunload` event, t
122122
123123## History
124124
125- | Version | Changes |
126- | ------------------------------------------ | --------------------------- |
125+ | Version | Changes |
126+ | ----------------------------------- | - --------------------------- |
127127| [ 14.3.0] ( /app/references/changelog ) | Added the ` .press() ` command |
128128
129129## See also
0 commit comments