39,563 questions
-2
votes
0
answers
32
views
Why are xpaths with ends-with and first() never working? [closed]
In inspect elements, I tried finding locators with ends-with and [first()]
It never worked
0
votes
0
answers
108
views
Unable to locate an element with the xpath expression //span[@class='windowTitle']
OK I cannot figure out this error. We are running an IE test (testng with selenium) (which opens Edge) on a Jenkins machine. I keep getting this error "Unable to locate an element with the ...
1
vote
2
answers
137
views
How to handle multiple <img> elements with the same ID in Selenium (auto-detect and interact)? [closed]
How can I handle multiple <img> elements in Selenium when all of them have the same id attribute?
I need a way to automatically detect and interact with these images, even though they share the ...
Best practices
0
votes
1
replies
35
views
What other paths are there beside file paths and xpath?
I have to make a design decision. I need to describe paths across hierarchical network graphs. In other words: There can always be a next parent, but we don't know. There can also be always a next ...
0
votes
4
answers
150
views
xmllint script to convert an XML document into a summarized CSV file
I have an XML file in the format:
<items>
<item>
<id>abc123</id>
<name>widget</name>
<quantity>1.0</quantity>
</item>
<...
1
vote
0
answers
50
views
Dynamically Naming ID in XPath
I admit I am an XPath novice and I have Googled my face off on this topic so please be gentle. Is it possible to dynamically name identifiers without using XSLT, Java, or Python?
Incoming data ...
0
votes
0
answers
46
views
Xpath expression to only select 1st iteration of element
I have the following XML response being returned in my Oracle OIC Integration engine:
<ListFileResponse xmlns="http://xmlns.oracle.com/cloud/adapter/ftp/Listfiles_REQUEST/types">
<...
1
vote
4
answers
91
views
Modal Popup - Selenium/Python
I am automating a confirmation request, and my code gets me all the way to the end, but when it comes to actually confirming my reservation, there is a popup modal window that appears as a layover on ...
1
vote
2
answers
98
views
Find only XPath-entries without any prefix by regular expression
My problem is pretty straight forward, but yet I didn‘t come up with a solution for it - probably because my knowledge about regular expressions is very basic.
I am trying to match only the entries of ...
-1
votes
2
answers
96
views
How to find this HTML element with Selenium/Java
I've tried several ways, but I just cannot seem to get Selenium to resolve to this HTML element on a page:
<button class="btn__primary--large from__button--floating" data-litms-control-...
2
votes
2
answers
57
views
How to access XML attribute with namespace using XPath [closed]
I have the following XML document, and I've been using XPath to navigate this and other documents without issues. But one of the elements has an attribute with a namespace that I can't seem to ...
1
vote
1
answer
62
views
Xpath doesn't see text inside paragraph [duplicate]
Xpath doesn't work for text() for paragraph() content but works fine for div.
Example:
<div>
<p>
123
123
some_text
</p>
<div>
Xpath:
//*[contains(text(), 'some_text')]
Result:...
1
vote
3
answers
200
views
How to find the path to an XML element
I want to find the path to a given XML element (node). I have tried xmllint and xml_grep; both return the element(s) I'm searching for, but as far as I can tell, neither returns the path to that ...
3
votes
1
answer
60
views
Execute xpath having column name into a variable
I need to extract data from a XML column in SQL Server 2016, for this example I'll create a XML variable, but in the real scenario the XML in inside a table so it is not editable.
This is a sample of ...
2
votes
3
answers
91
views
Robot framework- xpath - how to use translate() function
Robot framework- xpath - how to use translate() function
Consider tc1.robot file as below:
...
*** Test Cases ***
LoginTest
...
sleep 5
click element xpath://input[matches(@...