We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With Firefox support around the corner, the following methods will be useful to conditionally test things based on browser:
Cypress.isBrowser(_browserName_)
browserName
Cypress.isBrowserType(_browserType_)
browserType
Cypress.isBrowserType('chrome')
Cypress.isBrowserType('firefox')
The text was updated successfully, but these errors were encountered:
We now have Cypress.browser which can be used to achieve the same thing. Closing as resolved.
Sorry, something went wrong.
chrisbreiding
No branches or pull requests
With Firefox support around the corner, the following methods will be useful to conditionally test things based on browser:
Cypress.isBrowser(_browserName_)
:browserName
is case-insensitiveCypress.isBrowserType(_browserType_)
: Returns true if the browser is in the family ofbrowserType
:Cypress.isBrowserType('chrome')
will return true for Chrome, Canary, Chromium, and ElectronCypress.isBrowserType('firefox')
will return true for Firefox, Firefox Developer Edition, and Firefox NightlybrowserType
is case-insensitiveThe text was updated successfully, but these errors were encountered: