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
39,487
questions
0
votes
1
answer
37
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, ...
0
votes
1
answer
23
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=/...
0
votes
0
answers
24
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 ...
0
votes
2
answers
55
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 ...
0
votes
1
answer
82
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 ...
-1
votes
1
answer
41
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....
0
votes
1
answer
40
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 ...
0
votes
1
answer
92
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 ...
1
vote
2
answers
47
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....
0
votes
1
answer
44
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 ...
0
votes
0
answers
34
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 ...
-1
votes
1
answer
53
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 ...
0
votes
1
answer
38
views
How to parse XML in Google Sheet?
This URL
https://export.arxiv.org/api/query?id_list=2308.05734 contains the xml below.
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom&...
1
vote
1
answer
33
views
How to get parent element by the contents of two child elements?
I have a list of events with the following contents:
<div class="all-ebents">
<div class="sport-base-event">
<span class="event-block-current-...
1
vote
2
answers
93
views
How to properly concatenate multiple XPaths and how to add spaces between them?
I'm trying to create my own personalized RSS Feed for an Italian institutional site. The site in question is this, belonging to an Italian municipality. The idea would be to use the PolitePol online ...