Update xpath.md

This commit is contained in:
Sergey Starodubov 2018-03-07 19:09:01 +04:00 committed by GitHub
parent 8c1317a2bc
commit 67c06321dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ Works in Firefox and Chrome.
| CSS | Xpath | ? |
| ---- | ---- | -- |
| `#id` | `//[@id="id"]` | [?](#predicates) |
| `.class` | `//[@class="class"]` *...[kinda](#class-check)* | |
| `#id` | `//*[@id="id"]` | [?](#predicates) |
| `.class` | `//*[@class="class"]` *...[kinda](#class-check)* | |
| `input[type="submit"]` | `//input[@type="submit"]` | |
| `a#abc[for="xyz"]` | `//a[@id="abc"][@for="xyz"]` | [?](#chaining-order) |
| `a[rel]` | `//a[@rel]` | |