diff --git a/README.md b/README.md index be0c820..d205390 100644 --- a/README.md +++ b/README.md @@ -2517,7 +2517,7 @@ from selenium import webdriver = //[/ or // ] # Child: /, Descendant: //, Parent: /.. = ///following:: # Next sibling. Also preceding/parent/… = # ` = */a/…`, ` = [1/2/…]`. - = [ [and/or ]] # `and` is same as chaining conditions. + = [ [and/or ]] # For negation use `not()`. = @="" # `.=""` matches complete text. = contains(@, "") # Is a substring of attr's value? = [//] # Has matching child? Descendant if //. diff --git a/index.html b/index.html index cfc5b08..a2b561a 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -2077,7 +2077,7 @@ print(f'{python_url},

XPath — also available in browser's console via '$x(<xpath>)':

<xpath>     = //<element>[/ or // <element>]           # Child: /, Descendant: //, Parent: /..
 <xpath>     = //<element>/following::<element>         # Next sibling. Also preceding/parent/…
 <element>   = <tag><conditions><index>                 # `<tag> = */a/…`, `<index> = [1/2/…]`.
-<condition> = [<sub_cond> [and/or <sub_cond>]]         # `and` is same as chaining conditions.
+<condition> = [<sub_cond> [and/or <sub_cond>]]         # For negation use `not(<sub_cond>)`.
 <sub_cond>  = @<attr>="<val>"                          # `.="<val>"` matches complete text.
 <sub_cond>  = contains(@<attr>, "<val>")               # Is <val> a substring of attr's value?
 <sub_cond>  = [//]<element>                            # Has matching child? Descendant if //.
@@ -2932,7 +2932,7 @@ $ deactivate                  # Deactivates the activ