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
-1
votes
1 answer

Web element not found for selenium (Robot Framework) in Internet Explorer

I am having trouble finding the web element on a website on Internet Explorer. The link i am trying to click shows as the following in developer tools: PO…
Jay
  • 1
  • 1
-1
votes
4 answers

How to get the non-strike price amount in selenium using xpath?

This is the url of the Webpage I am trying to automate: http://www.qaclickacademy.com/courses-description.php I want to get the value of the non-strikethrough price (currently $ 20.00) using Selenium and an XPath locator. A snippet of the HTML…
Ravi
  • 11
  • 5
-1
votes
4 answers

org.openqa.selenium.InvalidSelectorException: invalid selector while trying to locate an element

My element is displayed as: Business Loans xpath is: //*[@id='main-nav']/ul/li[1]/a[1]'] This returns invalid element…
ravi
  • 1
  • 1
  • 1
  • 3
-1
votes
4 answers
-1
votes
3 answers

Use variable in XPath

This is working, but I want to use the text Group 1 as a variable. Code trials: [FindsBy(How = How.XPath, Using = "(.//*[normalize-space(text()) and normalize-space(.)= 'Group 1'])[1]/ancestor::app-organization//*[normalize-space(text()) and…
-1
votes
2 answers

How to find classname starting with a particular text and ending with a particular text through Selenium and Java

Below is the element and I need to find the class names matching with the first css- and ending with widget, How do i find it in selenium (java)? Tried with the below code, but it didnt work List list1 =…
prav kum
  • 424
  • 3
  • 7
  • 22
-1
votes
1 answer

How to write xpath for this particular webelement which has a double quotes?

I identified one unique webelement as: ng-click="navigateToNewCustomer('New Customer')" How can I write xpath for this? When i wrote xpath it throws error since I am using double quotes. //*[@ng-click="navigateToNewCustomer('New…
Arun Chettur
  • 43
  • 2
  • 10
-1
votes
1 answer

How to merge(group) xpath results

I Have following table …
-1
votes
2 answers

Xpath 1.0: if condition true, then do this => combine these 2 xpaths

I have already prepared 3 xpaths (v1.0) who are doing their correct task, but I have to combine them in 1 code (nesting). 1 Check if this is true: contains(substring($tmpVariable, 10, 2), '^[A-Z]+$') if YES, then 2 concat(substring($tmpVariable, 1,…
Jesse
  • 69
  • 7
-1
votes
2 answers

How to include a line break in an XPath expression?

Is there a way to add a line break to an XPath expression? Here is my current expression which isn't working {concat(@Parameter1, $NullObj, @Parameter2)} Where the variable $NullObj is equal to the hex value of the LINEFEED character. This…
Rob Ot
  • 11
  • 1
  • 6
-1
votes
1 answer

XPath 1.0 - Information from next node

I've got this partial XML: VALUE1 1 start
D. Caan
  • 1,907
  • 6
  • 22
  • 36
-1
votes
1 answer

How to get first 2 siblings after the match using Xpath1.0?

I have the below xml: I wrote the below Xpath…
Arup Rakshit
  • 116,827
  • 30
  • 260
  • 317
-2
votes
1 answer

Extract last word using Xpath 1.0

I need to select only the last word using xpath 1.0. I have something like this: Portugal PT I want to select only the PT word but the order is not exact, i.e: Portugal - Lisbon - PT , but the word…
-2
votes
1 answer

Need to find attribute and click on it

I have element newdevice, with the following attribute remove device from account. newdevice is unique, but a lot of same attributes. Problem that I unable to perform click button. WebElement newdevice =…
-2
votes
1 answer

Catching partial part of text with XPath

I have been having some difficulties finding an XPath for the following H

pppppppp pppppp

CodeMonkey
  • 2,511
  • 4
  • 27
  • 38
1 2 3
27
28
First Row | First Column First Row | Second Column
Second Row | First Column Second Row | Second Column