Category "xpath"

How to use scrapy to scrape google play reviews of applications?

I wrote this spider to scrape reviews of apps from google play. I am partially successful in this. I am able to extract the name, date, and review only. My ques

What is the XPath to an attribute of an svg Element?

Lets say my website contains multiple svg elements and I want to find the following: <svg id="some-svg-id" /> How can I find this svg via its id? I aware

Select a node with XPath whose child node contains a specific inner text

Given the following XML: <root> <li><span>abcText1cba</span></li> <li><span>abcText2cba</span></li&g

How to get attribute value and element value from XML with xmllint

Have such a XML file. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <model-response-list xmlns="http://www.ca.com/spectrum/restful/schema/res

xpath to find pseudo-element ::after in side a div element with out any content

I am trying to write xpath to find a checkbox selected or not, this checkbox is being changed using css ::after element. Below are two elements I have //d

Unmarshalling an XML using Xpath expression and jaxb

I am new to JAXB and would like to know if there is a way by which I can unmarshall an XML to my response object but using xpath expressions. The issue is that

What XPath to select only non-taged text inside div. Selenium. Java

I want to select only the text "only this text" from the snipet below using XPath (in Java) but that text is random and I don't know what is written there. &l

What is use of '%s' in xpath

I have tried to know the reason in online but i didnt get it. I want to know the reason why '%s' used in xpath instead of giving text message I hope some one

XPath, how to select a "checkbox" that is a child to an element with a custom content

I have a task that requires using some XPath, the site is http://todolistme.net/ So, I need to select a checkbox: //input[contains(@type, 'checkbox')] But befor

XPath: counting elements excluding another elements from count

I need to count all the elements that includes text 'Automation' but excluding the span[@class = "hot"] elements from the count. The site with a html code is :

XPath Query for Scheduled Task

I am trying to create a Windows Scheduled Task to notify my everytime some other scheduled task in a special folder failed. To do this I have setup a scheduled

ChromeDriver Does not find the element on the page with selenium JAVA

I am trying to find an element on the page, I want to sorter the result list but my result show me that is not attached on the page: Exception in thread "main"

python selenium how to copy text?

How to copy text with selenium xpath? When I writing driver.find_elements_by_xpath("//div[@class='rankingItem-value js-countable']").text I get next error

Xpath for button having text as 'New'

In our application almost in every screen we have a button with text 'New', Here is the html source for one of the button: <button id="defaultOverviewTable:

Getting element's name in XPATH

If I selected an element using XPATH how can I get its name? I mean something like text() function in //element/[@id=elid]/text().

Robot Framework - check if element defined by xpath exists

I'm wondering, I'd love to find or write condition to check if some element exists. If it does than I want to execute body of IF condition. If it doesn't exist

python selenium find elements by xpath returns a list of a links but element not interactable

I am using this xpath //a[contains(., 'Download Python')] on www.python.org/downloads in chrome developer tools I get 4 matches, each one match the following

QATester weird Error: clickable element "ADD" was not found by text|CSS|xpath

Sup Guys! I'm finishing an Assesment related to an PHP/MySql App; I have learning from scratch since I have never seen PHP before, and I have to admit that I wo

How to crawl question and answer of Google People Also Ask with Selenium and Python?

I used this code for crawl question and anwser of Google People Also Ask. I want use that for create idea for writer. But I can't get exactly that element, in t