Skip to main content

Questions tagged [xpath]

The primary purpose of XPath is to address parts of an XML document. It also provides basic facilities for manipulation of strings, numbers and booleans. XPath uses a compact, non-XML syntax. XPath operates on the abstract, logical structure of an XML document, rather than its surface syntax.

0 votes
0 answers
43 views

Need to locate XPath for label element (which is not interactable in UI)

<div class="custom-control custom-checkbox" style="padding-left: 0px; margin-top: -4px !important;" xpath="1"> <input type="checkbox" autocomplete=&...
Naresh p's user avatar
2 votes
1 answer
172 views

XPath Selector in Puppeteer 22.x

I have read the newest Puppeteer v22.x documentation about XPath, still don't know how to use XPath in Puppeteer 22.x. I want to click an element containing the text 'Next'. Here the HTML that has the ...
Ruzky's user avatar
  • 157
0 votes
1 answer
38 views

Selenium Java: click button with CSSselector inside of shadow-root

I have cookie popup from here: website which I selected with shadow-root like this: howto now I want to click the button with xpath expression like this: WebElement shadowHost = driver.findElement(By....
Leder's user avatar
  • 362
1 vote
1 answer
54 views

Google sheets IMPORTXML and XPath href and title not returned

I need to extract some URLS and their respective titles using Google Sheets ImportXML with Xpath. I found these previous answers and tested them but they don't seem to be working for my case: Extract ...
Lod's user avatar
  • 751
0 votes
1 answer
37 views

Selenium Xpath not working for automated test

I am creating a robot to autologin in a website. So far it is working well, but I need to click in a button in the top of the screen and it is not working The code from google inspect page is <div ...
Brazs's user avatar
  • 57
0 votes
1 answer
49 views

xpath for multiple nodes selecting substring have an invalid token

xml document containing comment in comments node as: <Comments> <Comment>09/28/2021 22:21:31user1 [1] file uploaded </Comment> <Comment>09/28/2021 22:22:47user2 [2] ...
Aysha Khan's user avatar
1 vote
1 answer
34 views

Xpath Expression Clarity - Java Selenium [duplicate]

I was practicing my XPath by clicking on YouTube videos trending section. On the trending section I want to click on second video present irrespective of whichever video is present. I have written ...
Anshul Thakur's user avatar
0 votes
1 answer
60 views

Can I create an XPATH expression in Notepad++ with results I can paste into a spreadsheet?

Here is my source xml <?xml version="1.0" encoding="UTF-8"?> <file> <Dog ID="Rover" Breed="Sheep Dog"> <feature name="...
DBacker's user avatar
  • 11
0 votes
2 answers
89 views

Using XPath with Python's lxml module, how to validate a node's path?

I'm using XPath with Python's lxml module, and have the following xml code. <library> <section1> <book> <title>Harry Potter</title> <author>J.K. ...
zsfzu0's user avatar
  • 156
0 votes
1 answer
37 views

Applying default values in multiple XML elements using XSLT 1.0

I am using XSLT 1.0. There is a requirement of applying default values to all the XML elements which are blank using XSLT. For example, say below is the input XML: <employee> <id ...
Anirban's user avatar
  • 949
-1 votes
1 answer
34 views

How to move values from available section to selected section in dropdown menu

When using the selectByVisibleText() method in Selenium WebDriver, it correctly highlights the desired option in the dropdown, but it doesn’t move the selected value from the “Available Values” ...
Naresh p's user avatar
1 vote
1 answer
59 views

How to parse random class name elements by python selenium? [closed]

Though there are some articles about this topic, I couldn't find how to solve my question, does anyone help me? The HTML source looks like as below, I can get element of 'div style="height:100%;...
mikezang's user avatar
  • 2,465
1 vote
3 answers
43 views

How to get the following element with XPath?

I have HTML code like this: <li> <span class="a">b</span> lorem ipsum </li> I want to get the text lorem ipsum, related to the span element. I tried //...
Evgeniy's user avatar
  • 2,491
0 votes
1 answer
59 views

Using XSLT to Iterate and Transform XML to Simple Text

I am a beginner and still learning in XSLT. I have a simple xml code below: <?xml version="1.0" encoding="UTF-8"?> <order id="1021"> <items> ...
ItsBuddy007's user avatar
0 votes
1 answer
26 views

Selecting a specific value in column 2, based on value in column 1, in a grid with XPATH

I am using selenium in Python to automate the tracking of attendance for events using a specific website for my organization. The list of attendees is built in a grid, with column 1 with the names of ...
Gustavo Santos's user avatar

15 30 50 per page
1
3 4
5
6 7
2633