question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Able to use Xpath syntax?

See original GitHub issue

The browsers natively support the Xpath syntax, I think that would be nice to use here this syntax too. Can you please consider this suggestion? Thank you

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Turbo87commented, Aug 13, 2019

we use querySelector() under the hood. if that supports XPath then qunit-dom supports it too, if not then I don’t see how we would implement that.

0reactions
Turbo87commented, Aug 21, 2019

I don’t think we will build this into qunit-dom itself, but it should be easy to use on top of it:

import xpath from 'xpath-to-css';

assert.dom(xpath('//a')).exists();
Read more comments on GitHub >

github_iconTop Results From Across the Web

XPath Syntax
XPath uses path expressions to select nodes or node-sets in an XML document. The node is selected by following a path or steps....
Read more >
XPath in Selenium: How to Find & Write? (Text, Contains, ...
It is a syntax or language for finding any element on a web page using XML path expression. XPath can be used for...
Read more >
Complete Guide For Using XPath In Selenium With Examples
The XPath is the language used to select elements in an HTML page. XPath can be used to locate any element on a...
Read more >
How to use XPath in Selenium? (With Examples)
XPath provides an option to dynamically search for an element within a web page, thus giving sufficient flexibility to tweak a locator to...
Read more >
Xpath cheatsheet
You can use nodes inside predicates. Indexing. //a[1] # first <a> //a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found