Skip to content

Commit

Permalink
address deprecated xpath plugin references (#5287)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 authored Jun 9, 2023
1 parent 3317a0d commit a09820c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
3 changes: 0 additions & 3 deletions docs/api/cypress-api/custom-commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -912,8 +912,5 @@ repository for a working example.
and
[How to Publish Custom Cypress Command on NPM](https://glebbahmutov.com/blog/publishing-cypress-command/).
- [Plugins using custom commands](/plugins#Custom%20Commands)
- [`cypress-xpath`](https://github.com/cypress-io/cypress-xpath) adds a
`cy.xpath()` command and shows best practices for writing custom commands:
retries, logging, and TypeScript definition.
- [Cypress.log()](/api/cypress-api/cypress-log)
- [Recipe: Logging In](/examples/recipes)
Original file line number Diff line number Diff line change
Expand Up @@ -399,15 +399,6 @@ cy.get('.my-class').contains('text')
cy.contains('text')
```
:::info
While Protractor also allows for selection by XPath, Cypress doesn't support
this out of the box. However, you can add the
[cypress-xpath plugin](https://www.npmjs.com/package/cypress-xpath) to easily
enable it.
:::
#### Getting multiple elements on a page
When you want to get access to more than one element on the page, you would need
Expand Down
14 changes: 7 additions & 7 deletions src/data/plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,6 @@
"name": "Custom Commands",
"description": " Read the <a target=\"_blank\" href=\"/api/plugins/preprocessors-api\">Custom Commands</a> and <a target=\"_blank\" href=\"/api/plugins/preprocessors-api\">Custom Query</a> documentation to learn more.",
"plugins": [
{
"name": "cypress-xpath",
"description": "Adds XPath command. This repo is also a good example of using custom commands to do retries, provide TypeScript definitions, etc.",
"link": "https://github.com/cypress-io/cypress/tree/develop/npm/xpath",
"keywords": ["xpath", "commands"],
"badge": "official"
},
{
"name": "cypress-testing-library",
"description": "🐅 Simple and complete custom Cypress commands and utilities that encourage good testing practices.",
Expand Down Expand Up @@ -1246,6 +1239,13 @@
"link": "https://github.com/cypress-io/cypress-browserify-preprocessor",
"keywords": ["browserify"],
"badge": "official"
},
{
"name": "cypress-xpath",
"description": "Adds XPath command. This repo is also a good example of using custom commands to do retries, provide TypeScript definitions, etc.",
"link": "https://github.com/cypress-io/cypress/tree/develop/npm/xpath",
"keywords": ["xpath", "commands"],
"badge": "official"
}
]
}
Expand Down

0 comments on commit a09820c

Please sign in to comment.