Xpath Questions
Ad
for a parent Element, there are two child Elements. If .text() of child 1 matches, how to perfomr action on Child2
The element is defined like this: <div class ="frm-group'> <label class ="ng.binding" "source environment" .....
Wait for an xpath in Puppeteer
On a page i'm scraping with puppeteer, i have a list with the same id for every li. i am trying to find and click on an element with
How can I delete a specific node within a XML file by using vbscript
I am having the problem that i cannot select a specific xml node which needs to be deleted. i have already tried to select the node by using the
.NET : How do you remove a specific node from an XMLDocument using XPATH?
Using c# how do you remove a specific node from an xmldocument using xpath?
How do I resolve the error "Expression must evaluate to a node-set" when checking for the existence of a node?
I'm attempting to check for the existence of a node using the following .net code: xmldocument.selectsinglenode(
Pulling both the text and attribute of a given node using Xpath
I'm parsing xml results from an api call using php and xpath. $dom = new domdocument();
Match conditionally upon current node value
Given the following xml: <current> <login_name>jd</login_name> </current> <people>
XPath and Selecting a single node
I'm using xpath in .net to parse an xml document, along the lines of: xmlnodelist lotsostuff
System.Xml.XPath.XPathException: Expression must evaluate to a node-set when executing SelectSingleNode("//(artist|author)")
Can somebody explain me why is this not working? i'm executing xmlnode xmlnode =
Ad
How to get hold of the percentag value?
This is my code to get the percentage from this particular website, but i always get errors and with the new version of selenium i’m really
Finding XPATH for an DOB
I am not able to locate the xpath for the dob field for the following page as the right click is disabled in the dob calendar. any leads will be
XPath syntax error via Ansible playbook for SOAP XML
I have a requirement where i need to read an element from a xml file. the content in file has soap content. while reading the element from the
Extract content with Xpath and data attribute
I need to extract the content of the following div tag which has the data-visible="1" attribute and contains the div id
Selenium - Find element at other element level
I have following piece of code to read value from one field: private final string datarowxpath =
How to use a if/else to click on IOS button if it appears on the Screen
Hi every time the app is updated to a new version it should show a message about the terms that the user has to accept before using the app. but
Why AttributeError: 'bytes' object has no attribute 'findAll'
I am trying to screape the youtube data from trending page. got error from bs4 import beautifulsoup import requests import
Click on outer element with inner element with specific text in Puppeteer
How can i click on an outer element that contains a span with specific text via puppeteer? for example i have the following
I am trying to extract a newspaper data by clicking at next button to get more links
I am trying to extract business standard newspaper economy section data by clicking on the links but i am failing to do it. from
Xpath expression to select elements relative to current node
I am using selenium webdriver in python. i want to iterate through and count the number of visible input elements with type="text" or
Chrome extension that parses certain text from xml
I have a chrome extensions that opens xml of a website, but i need it to parse certain text from that xml that has value set to "1". i tried using
Ad
Get index of the specific td in tr by XPath
I have thead and tbody in the table. thead contains a few s in . each of it have an id. i need to find the index of td in thead by id and then
Python xpath parsing return memory localization
Print return memory localization: <element td at 0x3488120> from lxml import html import requests tritanium =
How do I cycle through these elements using selenium in python and get the XPATH value in return?
I want to be able to cycle through this table's tabs and return the xpaths and tab names. i am using the python selenium webdriver.
Node.js XPath example?
I have an xml data and to read i am using 'xpath' and 'xmldom'. i am fetching relativepath value but it's giving only first
Get the different value from multiple elements with the same class in Selenium for Python?
I have an html code like this: <span class="class_name">10</span> <span class="class_name">20</span>
Python: Extract attributes from a self-closing element with same name as other elements
I need to extract some, i think attribute values (sorry i don't know xml terminology that well) from some xml contained with elements that have
xpath escaping everything inside <>, how to fix that? Scrapy
When scraping with scrapy, while scraping text, in strings where they used <> instead of «»,
XPath select on child nodes
I am currently trying to make a new xpath on a child node. but it doesn't work. how can i archive this? the idea is:
XSLT changing a node via a named template call from within a different node
Edit: the error was in a wrong when condition. source xml: <?xml version="1.0"
Using the OR logical function in the "starts with" condition for finding the xpath
I use the following x-path to extract a web element based on the starts-with condition
Scrapy selector returns entire xpath rather than value
I am trying to scrape:
Ad
python lxml xpath: how to get this predicate working
Good morning, recently i picked up python and web scraping as a hobby ... i'm trying to get my head around an issue with python
Sectioning UITableView Cells - Repeating Cells
i'm trying to section my tableview data based on a key in my firebase database. i'm able to section everything properly
Search text from element td and click button in the same line
I need to find text inside td and click edit in the same line, example how to find base on id aaa02 and click edit in the same line, or any
How to click on element which contains a credit card number that changes each time with Selenium Python
I have a problem to find element on credit card payment form, which contains a number that changes each time, so please help me to find the way to
Following Sibling not working in selenium python
The part that i want to scrape is something like this: <dl class="some class"> <dt>
How to get an element with condition of its child element
I am doing on a crawling project using python and selenium. i am confusing about how to get an element with the condition of its child element
How to parse efficiently specific lines with lxml Python (from .XML-files)?
I have made a code that can iterate over specific rows in xml.file, but i think it's not good coding due to inefficiency. my example .xml looks
Why my xpath query in xml file does not work?
I have huge xml and need xpath query to "ПланыСтроки" and other similar elements i open xml in firefox and copy xpath of
Url in side of svg xmlns
I am trying to find url of this
Not getting all the a elements from div class using xpath and Scrapy
I have been trying to get all the properties from this website. when i access all of them on the main search page i can retrieve all the
How to extract just the number from html?
I am trying to extract on the number from this html element: <td bgcolor="green"> <font color="white">
Ad
Python/Selenium: Click on button element without ID attribute
Hi i want to click on this button but i don't know how to find it, it has no explicit name or id, also, what is the code to simulate a mouse
How to get the value of a span inside a li using Python Selenium webdriver?
I am trying to get the value of scn from my html page which is in this format- <html> <body> <div
XPath for attribute based on predecessor's attribute value?
So i have something like this <img src="/icons/folder.gif" alt="[dir]"> <a
How to extract all the texts from <a> tag using Selenium through Python
Here is the link of website from where i want to extract data, i'm
How to use Scrapy to parse PDFs without a specific .pdf-link?
I try to download pdfs but in case of
Python 3.6 How can I use ELSE or DEFAULT statement for xpath('@item').get() if the xpath does not exist
Hi we loop over some cells and get the values using xpath('@item').get() in the almost all cells have @item for
Multiple string replacements
(updated question from 'static replace' to 'dynamic replace') <data> <replacements> <replace
XPath for paragraph following a header?
This is the page code
How to interact with elements those cannot be inspected through css/xpath within google-chrome-devtools
I often encounter elements which i cannot right click to inspect their xpath or css. i want to ask what other ways exist to click on
Scrapy - scrape of all of the item instead of 1 item
I need to scrape all of the items but only 1 item is scrape. my code is working fine before but when i transfer it to other project which is same
How to access to 'rect' type element through Selenium-Python
There is a rect object in the dom: <rect class="slv-blank" id="id123" height="8.8" stroke-width="1px" width="18.8" x="59.2"
Ad
Click on text using xpath and selenium python
Normally i use the xpath to click on text of webpages. but now maybe because it's a table it doesnt work. i want to click on "snow microsoft
python regex xpath - regex an attribute of XPATH
Given a flexible string of regex pattern, i need to find all attributes attached. example string:
Puppeteer: search for inner text case insensitive
I'm trying to search inner text case insensitive using puppeteer. i've read this:
xpath type locator for the Login input
I want to understand this but i am kinda confused: taking the following login as an example, if we want to identify an xpath
How to get an array of values (multiple values) from one xpath selector?
I want to extract both 'link text' and 'link address' of all links in a website. what i want is to extract this data at once and saving it in an
Error when attempting to crawl site with python
I am trying to get prices from this website for a few monitors. here is
NoSuchElementException: Message: Unable to locate element while trying to locate an element using Selenium and Python
I have a specific login button i can't access with python firefox selenium. it's the login button on this webpage:
How to find xpath to the image element
I have a below html code which points to a svg (image) element on the screen
How to position a whole text of such a whole div with Xpath?
My test website is
How to click on an element through Selenium and Python
I am trying to click an item in a product page to add to my cart something but i can't do it because i am getting many errors or nothing happens.
Python Selenium - get href value
I am trying to copy the href value from a website, and the html code looks like this: <p class="sc-eydvao kvdwiq"> <a
Ad
Python Selenium XPATH with multiple tags
I have an automated python script to check for any changes in the dom. i have a xpath that works:
Nodejs xpath selector on xhtml not working
I have this simple, but not very well formatted html page with all it's mistakes: <html> <head>
XPath to element with changing id?
I am trying to locate one element using selenium with xpath. when i inspect the same element and copy the xpath, it is
Why scrapy Xpath can not find what is found by my browser(s) Xpath?
I want to find something by xpath in a page (first project by scrapy), for example the page
Xpath problem parsing child tags from parent tags that has style attribute
Following is the snippet of html content: <div class="post-inner wow bounceinup animated" data-wow-offset='80'
Getting error on invalid xpath, but able to hit the element while inspecting on browser
Getting the error of invalid slection: unable to locate an element with the xpath expression as following xpath is in valid.
How do I search for a Tag in xml file using ElementTree where i have a certain "Parent"tag with a specific value? (python)
I just started learning python and have to write a program, that parses xml files. i have to find a certain tag called organisationreference in 2
finding right selector for pagination with scrapy
I'm trying to extract data from this forum:
if statement with xpath as expression
I need to execute some code only if a given x path exists, if it does not exist i need to look for another path and then execute some code.
XPath parent node's class should not contain specific string
I'm trying to find all divs whose class name is 'phrase' and parent node's class name is not 'extras'.
NoSuchElementException: Message: no such element: Unable to locate element while trying to select options within a drop down box
I am trying to create a script that can automate clicking of the drop down box and clicking on the option that i want it to. i've tried
Ad
How to retrieve item list from html table with xpath?
I am trying to extract table information into a dictionary within python 3.7. the html from the table looks like this:
How to click a link within youtube comment using python selenium
I'm new to selenium python, i'm trying to click a link in the youtube comment but i don't know what element to use? can someone help me? thanks .
How to extract key value pairs into dict if other tags are present?
I am trying to extract key/value{1,2} pairs from a html table with python and pull them into a dictionary. the table elements look not
Accessing the search bar and searching using selenium
I was trying to access the search bar of this website: https://www.kissanime.ru
Selecting sub element with Selenium in Python
I have the following type of html code to work with:
Why am I able to assign a value to a read only property?
Apologies if this is a simple question. on this webpage:
Xpath Not Selecting Correct Element Using Splinter/Selenium Python 3
Not sure if i'm making a stupid mistake here, i've searched all over but i can't figure this one out. i'd really appreciate the help. i'm
XPATH XML to Postgres SQL
This is my example of xml <data> <month>11</month> <year>2021</year> <customer>
How to locate and click on the recaptcha checkbox using Selenium and Python
I've already tried in several ways to click this checkbox with selenium and i couldn't. link:
How to get <p> that contains text which matches regex
I am trying to scrape this website using scrapy, xpath and regex.
Unable to get text from parent and child nodes/tags with Scrapy
Before this is marked as duplicate, i've searched and tried other solutions found on so, which are:
Ad
How to Select the Entire content with Xpath selector in Scarpy
Hello i was scraping a site but then i ran into trouble because of the structure of the site, here is one page of the site
Trying to download file throught chrome: Selenium Python
I am using selenium with python to download certain files from a website. i am trying to access a option called "view all products
Xpath. Get text of specified tags in order of appearance on the page
I am trying to get the text from h2, h3 and p tag on the page in the order they appear on html page. example: all highlighted text should be
Scrappy doesn't grab span text within div class
I have a problem with retrieving the text from a div class of a website. the structure of the page is attached below. i've trying to retrieve
How can I access xml attributes in FireFox using XPath?
I can't find the right javascript method to access the attribute values i want from an xml file, using xpath in firefox. here's the sample
Scrapy + Python + Xpath : datapoint couldn't be scraped always
I want to scrape the address from this page:
Scrapy+Xpath+Python: Datapoint cannot be scraped
I want to scrape the urls here:
XPath-Python group text() under elements with the same name
I need to extract all text under certain name of elements. but i need to group them as well. what will the xpath expression look like?
Selenium find by id timeout exception
I have a problem with selenium. i have something like that dom structure: <div class="window__popup" style="display: block;
Selenium Python Extracting text after .click()
Good day everyone, i am having much trouble attempting to click on an element on a website, and after that extracting the text that
How to select the checkbox as per the html using Selenium WebDriver in Python
I have a checkbox which i need to select using selenium. below is the html: <input id="didatacheck"
Ad
show error with the following python codes
Show error with the following python codes error: print
cannot print out specific data with xpath and webdriver
Cannot print out specific data with xpath and webdriver from selenium import webdriver driver = webdriver.firefox()
Ad
Blog Categories
Ad