Tag: xpath

56 votes
1 answers
1.5K views
How to use an XPath or CSS selector to look for a substring in Nightwatch testing

I'm having to do Nightwatch testing on the following element: <textarea id="xxxxxxxx-971-condition"

avatar
Georgie
0 1 0 9
asked 07 September, 2021
46 votes
0 answers
2.9K views
How to fetch values from same class and print w/o excel?

enter image description here Ho do I get the values of all the % (like -76%,88%..and so on) using night watch

avatar
Charis
0 1 0 9
asked 07 September, 2021
53 votes
0 answers
2.3K views
Nightwatch - xpath locators stopped working for .waitForElementVisible() and .waitForElementPresent()

My tests has been working well for over a year, today I started to get the following error in numerous parts o

avatar
Boyd
0 1 0 9
asked 07 September, 2021
61 votes
2 answers
435 views
Click on XPath-selected href link in Nightwatch?

How to click on a href link in Nightwatch? The href text is identical to each other so I can't

avatar
Luis
0 1 0 9
asked 07 September, 2021
60 votes
8 answers
2.6K views
How to read XML using XPath in Java

I want to read XML data using XPath in Java, so for the information I have gathered I am not able to parse XML

avatar
Omar
0 1 0 9
asked 07 September, 2021
51 votes
8 answers
656 views
Extract value of attribute node via XPath

How can I extract the value of an attribute node via XPath? A sample XML file is: <parents name='Par

avatar
Winford
0 1 0 9
asked 07 September, 2021
53 votes
7 answers
385 views
How can I find an element by CSS class with XPath?

In my webpage, there's a div with a class named Test. How can I find it with XPath?

avatar
Basil
0 1 0 9
asked 07 September, 2021
59 votes
8 answers
752 views
Getting attribute using XPath

Given an XML structure like so: <?xml version="1.0" encoding="ISO-8859-1"?> <bookstore> <boo

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
61 votes
6 answers
1.4K views
Selecting a css class with xpath

I want to select just a class on its own called .date For some reason, I cannot get this to work. If anyone k

avatar
Yolando
0 1 0 9
asked 07 September, 2021