Questions tagged [xpath-1.0]

Use this tag for questions specific to XML Path Language (XPath) version 1.0

W3C Recommendation:


Online Training

A 70-minutes "Crash Course in XPath" module is available as part of the Pluralsight video-course "XSLT 2.0 and 1.0 Foundations", by Dimitre Novatchev


410 questions
-2
votes
2 answers

Xpath to match case sensitive of multiple strings

I need to input field value in application and no unique attribute for that field. Due to that I am using text() function and it worked. This application changes slightly between vendors. In application, for vendor1, field name is: Physical street…
ravi ch
  • 31
  • 4
-2
votes
3 answers

How to get text from html tag span through Selenium and Python

Here is my HTML and trying to get the text must be unique. with Python 2.7 Tried to use: driver.find_element_by_xpath("//span[@id='lblError']/text()") The xpath was not valid one.
Ari N
  • 117
  • 1
  • 1
  • 13
-3
votes
3 answers

Xpath finder for selenium using python -automation

I am trying to find an unique xpath for the below element, please advice if there are any better xpaths to make it for general text as I have currently given for that specific name.
-4
votes
1 answer

How to identify the second last check box?

I used to write like //button[@class='button'][last()-1] Is it correct or are there any other techniques?
1 2 3
27
28