Questions tagged [xpath]
XPath (XML Path Language) is language for addressing parts of an XML document, designed to be used by both XSLT and XPointer. 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.
339
questions
-1
votes
1
answer
48
views
Microsoft Account SignIn button cannot be clickable (Java Selenium Excel)
This is my code
public void AccessLogin() throws IOException, InterruptedException {
WebElement oauth = driver.findElement(oAuth);
oauth.click();
driver.get("https://login....
0
votes
1
answer
171
views
How to capture the element using srcset attribute?
I'm trying to understand the difference between the data-srcset and srcset attributes.
I need to get a photo by the srcset attribute, but I can only get it using data-srcset.
I don’t really understand ...
0
votes
1
answer
75
views
Testing load of a highchart using python and selenium
I am writing a program that must screen some charts, the issue is that I do not know how much time a graph expends to load, it could be seconds or minutes.
How can I make an appropriate wait, that ...
0
votes
1
answer
231
views
Trying to select element from dropdown
After dropdown is expended how can I select an option from the dropdown which is in span
image of the expanded dropdown https://prnt.sc/k-rFIUa6Ixeo
HTML:
<span class="ant-select-selection-...
0
votes
0
answers
2k
views
Robot Framework how to set a variable in an xpath?
Trying to set a variable in an xpath that I can then replace the text in for a dropdown menu. Not sure if there is a better way to do this I have tried "Replace Variables" also from the ...
1
vote
0
answers
900
views
How to select city based on city name in mat-option-text?
I need to find a specific city from a drop down list. I have tried using the xpath but the id number for the city keeps changing. The element from the website is below:
<mat-option role="...
0
votes
4
answers
526
views
Selenium Locators are not working for this site?
public class LoginPage {
WebDriver driver;
@FindBy(xpath = "//input[contains(@class,'oxd-input') and @name='username']")
private WebElement userName;
@FindBy(xpath = "...
0
votes
1
answer
86
views
How to find an unnamed button belonging to a certain h2 entry XPath
(I am a bit of a StackOverflow newbie, so please forgive any beginner mistakes and let me know what to improve in the future)
I am trying to select the highlighted button in the appended picture.
...
1
vote
2
answers
637
views
Unable to fetch text values present within strong tag using xpath
While trying to print values present within the strong tag using XPath, I'm getting the following exception:
org.openqa.selenium.NoSuchElementException: Unable to locate element:
strong
This is my ...
1
vote
1
answer
223
views
I can't find element in a HTML file with XPath
I am trying to get the name and the price information from this website with XPath. When i write my XPath expression down in the search bar it locates correctly in the chrome. But in VSC it doesn't ...
-1
votes
1
answer
180
views
Google Sheet importxml tr td
wishing to export the values in the red area into google sheets, i can't get the xpath corectly. Thanks a lot
Edit: I tried using this, and it s said that is empty
"=IMPORTXML(A2,"//div[3]/...
0
votes
1
answer
173
views
Selenium : Unable to identify the Xpath of the Grammarly extension in chrome
Unable to get the Xpath for the Grammarly extension which has been added into chrome browser as an extension.
In the screen shot below , I am using GMAIL , but you can use any other website like https:...
-1
votes
1
answer
938
views
How to get the correct XPath for a column title using C# and selenium webdriver?
I have the following HTML
<label class="ms-Label headerText-269" title="Reference Id">Reference Id</label>
which I am trying to locate using XPath.
I have written the ...
2
votes
3
answers
742
views
How to find a specific occurrence of a field that exists in multiple places (Xpath)?
I'm new to Xpath and I wanted to know if there was a way to inspect a specific element, that is repeated multiple times throughout the webpage.
For this instance I want to inspect the specific span ...
0
votes
1
answer
1k
views
Problem finding element with text when the text contains &nbsb;
I have the following element in the DOM:
<div id="sourceListDiv">
<select id="sourceList" onkeydown="uil.handleKeyDown(this)" size="15" ondblclick=&...