Top "Xpath" questions

The primary purpose of XPath is to address parts of an XML document.

XPath: How to select elements based on their value?

I am new to using XPath and this may be a basic question. Kindly bear with me and help me …

xpath
How to verify an XPath expression in Chrome Developers tool or Firefox's Firebug?

How can I verify my XPath? I am using Chrome Developers tool to inspect the elements and form my XPath. …

google-chrome firefox selenium xpath selenium-webdriver
XPath:: Get following Sibling

I have following HTML Structure: I am trying to build a robust method to extract second color digest element since …

html xpath siblings scraper
Getting the value of an attribute in XML

How would one get the value of attribute1 (blah) in the following xml using xslt: <name attribute1="blah" attribute2="…

xml xslt xpath attributes
Using XPATH to search text containing &nbsp;

I use XPather Browser to check my XPATH expressions on an HTML page. My end goal is to use these …

xml search xpath selenium
XPath - Selecting elements that equal a value

In Xpath, I am wanting to select elements that equal a specific value. Sample XML data: <aaa id="11" > &…

xpath
How to click a href link using Selenium

I have a html href link <a href="/docs/configuration">App Configuration</a> using Selenium I …

java selenium xpath css-selectors webdriverwait
Converting JSON to XML in Java

I am new to json. I am having a program to generate xml from json object. String str = "{'name':'JSON',…

java xml json xpath
How to use XPath preceding-sibling correctly

I am writing tests for my site using Selenium IDE and I am having trouble with having selenium click on …

selenium xpath selenium-ide
What is the correct XPath for choosing attributes that contain "foo"?

Given this XML, what XPath returns all elements whose prop attribute contains Foo (the first three nodes): <bla> &…

xml xpath