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?

How To Use The Firebug Xpath.js Script?

I am trying to use this script over here: https://github.com/firebug/firebug/blob/master/extension… Read more How To Use The Firebug Xpath.js Script?

Get Parent Element Node When Child Node Is Matched

This is my code: Read more Get Parent Element Node When Child Node Is Matched

How To Select An Element That Matches A Part Of The Element's Inner Text Using Xpath With Javascript

I have an HTML document that contains some links and I'm trying to use XPATH to select the link… Read more How To Select An Element That Matches A Part Of The Element's Inner Text Using Xpath With Javascript

Can I Add The Id Property To An Html Element Created With React

I'm using Selenium to write end-to-end tests for a web application developed in React. Upon ins… Read more Can I Add The Id Property To An Html Element Created With React

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

Get The Full Path Of A Node, After Get It With An XPath Query In JavaScript

i have the next instruction, in JavaScript: var firstScene = document.evaluate('//Scene', d… Read more Get The Full Path Of A Node, After Get It With An XPath Query In JavaScript