This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
XPath [2020/10/21 04:31] peternlewis |
XPath [2021/02/28 17:54] JMichaelTX Fixed formatting with double slashes |
||
---|---|---|---|
Line 3: | Line 3: | ||
[[https://www.w3schools.com/xml/xpath_syntax.asp|XPath]] is a query language for selecting nodes from an HTML document. | [[https://www.w3schools.com/xml/xpath_syntax.asp|XPath]] is a query language for selecting nodes from an HTML document. | ||
- | In Keyboard Maestro, in the various [[actions:Browser_Actions|Browser Actions]] and tokens you can use an XPath as long as it starts with “/html”, “/HTML” or “//”. Otherwise, it is typically considered to be JavaScript code or just a plain name, depending on the action or token in question. | + | In Keyboard Maestro, in the various [[actions:Browser_Actions|Browser Actions]] and tokens you can use an XPath as long as it starts with “/html”, “/HTML” or “`//`”. Otherwise, it is typically considered to be JavaScript code or just a plain name, depending on the action or token in question. |