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.

xpath
1 vote
1 answer
13 views

How do I get text in Selenium when the text isn't neatly enclosed within a tag?

<td data-title="Docket No.">"3228" <div class="cursor-pointer expand-collapse-container expand-document-name"> <div class="expand-arrow&...
ScottyCov's user avatar
-1 votes
0 answers
8 views

Is Playwright in built functions better than xpath for stable locators?

If we want to compare the stability of the locator, what is the preferred way in playwright framework, using the combination of inbuilt functions or the xpath? I tried combinations of the inbuilt ...
Chirag Dalbanjan's user avatar
0 votes
1 answer
29 views

Extracting the text between span tags in a Javascript-rendered page using Selenium in Python

I am trying to scrape all instances of text between tags with a particular class on a web page that dynamically updates. I am using selenium with a chrome WebDriver in Python. In a normal browser, ...
zicari's user avatar
  • 3
0 votes
1 answer
19 views

How can I add additional tagged vlans when using virt-install to create a guest?

I'm unable to figure out the XPath syntax to add a second tagged vlan when using virt-install to provision a guest: srv01:~$ sudo virt-install\ --name=ds-controller01.iwc.ig24\ --disk source.dev=/...
FrozenCryptid's user avatar
0 votes
0 answers
21 views

Extract all data inside g tag of JS chart using Selenium

I am currently trying to scrape a local web page, generated by my EV charger. I access it through it's IP address, which requires me to sign in. After signing in, I want to retrieve the data from the ...
DvdV's user avatar
  • 77
0 votes
2 answers
50 views

Postgresql - XML- Processing xpath with date comparission

I have ingested XML file in Postgresql DB and I trying to perform XPATH operation on the field with date comparison but it is not working. From Postgresql official site I found out that Postgresql ...
The6thSense's user avatar
  • 8,315
0 votes
1 answer
71 views

click() method from element object (HtmlUnit) is doing nothing

I am trying to crawl on this website: https://www.softpedia.com/get/Programming/Other-Programming-Files/Apidog.shtml using html unit. I want to "click" on "Download now" button, it ...
Daniel Reuveni's user avatar
-1 votes
1 answer
36 views

Handle submenu items from a drodown

I want to locate the elements from sub menu i am trying to locate print but couldn't. how can i fix this? My code WebDriver driver = new FirefoxDriver(); driver.get("https://www.flipkart....
Srinivasulu 's user avatar
0 votes
1 answer
34 views

Virtualizing XML-based API using WireMock

I'm trying to virtualize an XML-based API using WireMock and generate a JSON response using wiremock standalone jar. The requirement is to copy a tag value from the XML request payload to the JSON ...
ANZAR AHSAN's user avatar
0 votes
0 answers
60 views

A condition on whether an element exists with Python Selenium

I am trying to capture a text from an element which might have two XPaths, but I can't make it happen. I have tried all of the below methods with no luck and I'm getting this error when running my ...
Arash's user avatar
  • 1
0 votes
0 answers
20 views

Not able to find path of slider ; I need to drag the bar to make it 100 using mouse click events of Cypress JS [closed]

Hello I was doing a case in cypress , I need to drag the slider using cypress mouse over. But I am not able get xpath or css path of slider . If I search or copy xpath from console i am getting xpath ...
Karan L's user avatar
1 vote
2 answers
44 views

find an element by Xpath using selenium Java

import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.ui....
Kamilia Bouras's user avatar
0 votes
1 answer
42 views

XSLT - Find most recently _closed_ prior element

xslt 1.0 I am afraid. I have access to exslt. I am otherwise looking to try to avoid using extension functions. I need to find the most recently CLOSED xslt element of a particular type, rather than ...
tolanj's user avatar
  • 3,659
0 votes
0 answers
31 views

Read values into a List<string> or DataTable from a Agnostic Grid using Selenium C#

I'm trying to read an Agnostic Grid on a web page using selenium c# and want to store the Text based on the column name. I'm not that great fan of DataTable so I preferred List over DT. Problem: The ...
StackUseR's user avatar
  • 958
-1 votes
1 answer
47 views

XPath Python Error: The 'list' object has no attribute 'xpath'

I'm brand new to Python and web scraping and cannot figure out what is wrong with my code for the life of me. Is it because I'm scraping just one element and not a list? I've checked my XPaths so many ...
Jamie Vergano's user avatar

15 30 50 per page
1
2 3 4 5
2633