You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I have a scenario where I need to simulate the keyboard event Shift+Tab to move focus to the previous element, which could be either a button or an input field. Currently, we use realPress(['Shift', 'Tab']), which works perfectly in Chrome. However, it does not work in Firefox, likely because CDP is not supported for Firefox.
My requirement is specifically for Firefox.
I am using Cypress version 15.3.0, and according to the documentation, this version supports advanced keyboard interactions. However, when I try to perform Shift+Tab using cy.press('Tab', { shift: true }), I receive a compiler error.
Also, alternatively, I tried to achieve this using cy.focused().type('{shift}{tab}')], but that did not work either. I received an error stating that {tab} isn't a supported character sequence.
Please suggest how to achieve this scenario of pressing multiple events like Shift + Tab with Firefox browser
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a scenario where I need to simulate the keyboard event Shift+Tab to move focus to the previous element, which could be either a button or an input field. Currently, we use
realPress(['Shift', 'Tab'])
, which works perfectly in Chrome. However, it does not work in Firefox, likely because CDP is not supported for Firefox.My requirement is specifically for Firefox.

I am using Cypress version 15.3.0, and according to the documentation, this version supports advanced keyboard interactions. However, when I try to perform Shift+Tab using
cy.press('Tab', { shift: true })
, I receive a compiler error.Also, alternatively, I tried to achieve this using
cy.focused().type('{shift}{tab}')]
, but that did not work either. I received an error stating that {tab} isn't a supported character sequence.Please suggest how to achieve this scenario of pressing multiple events like Shift + Tab with Firefox browser
Beta Was this translation helpful? Give feedback.
All reactions