cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
47.02k stars 3.18k forks source link

Allow blackout option to accept xpath #8138

Closed ghost closed 4 years ago

ghost commented 4 years ago

When you pass the blackout option into screenshot, only css selectors are accepted. xpaths passed into the blackout option are not recognised.

jennifer-shehane commented 4 years ago

Cypress doesn't support xpath at all currently. See #1274 and comment in there about where you'd like to see xpath support - for selectors inside the cy.screenshot() command.