Skip to content Skip to sidebar Skip to footer
Showing posts with the label Xpath

Xpath, In A Greasemonkey Script, Is Not Selecting Right Nodes On An Xhtml Page

I'm working on a Greasemonkey script for weibo.com. I can't pick the elements using XPath o… Read more Xpath, In A Greasemonkey Script, Is Not Selecting Right Nodes On An Xhtml Page

$x() Function Is Not Defined Inside A Chrome Extension, Content Script

$x('//a[contains(@href,'.jpg')]'); works as expected from the developer tools comm… Read more $x() Function Is Not Defined Inside A Chrome Extension, Content Script

Javascript: Iterating Over Document.evaluate() Xpathresult Returns Null

I am trying to get all objects but it doesn't work. var tmp = document.evaluate('//tr'… Read more Javascript: Iterating Over Document.evaluate() Xpathresult Returns Null

How To Select An Option With Casperjs

I try to set select option attribute to selected. But I try to avoid using nth-child in CasperJS be… Read more How To Select An Option With Casperjs

Javascript: Use Xpath In Jquery

I have, for example, the next XPath query: //div[span='something']/parent::div/child::div[@… Read more Javascript: Use Xpath In Jquery

How Do I Retrieve The Value Of A Specific Xml Node By Path?

I am looking for a Javascript solution to this problem: I have an XML document which is loaded by w… Read more How Do I Retrieve The Value Of A Specific Xml Node By Path?

Get Text From Xpath Located Element Using Selenium Webdriver With Javascript

I am trying to find an element using xpath and get the elements text value. For example, I can find… Read more Get Text From Xpath Located Element Using Selenium Webdriver With Javascript

Html Xpath - How To Select A Node Based On Children's Value Per Index?

Given the following example HTML code: Value 1 Solution 1: Simple //tr[normalize-space(td[1]/div)… Read more Html Xpath - How To Select A Node Based On Children's Value Per Index?