2020欧洲杯时间表

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

How to click a button in an automated test using Selenium and Java

I'm trying to automate a test using Selenium and I want to click a button using xpath. This is what I'm doing: WebElement LogInButton = driver.findElement(By.xpath("/login")); LogInButton.click(); ...
0
votes
2answers
22 views

How to extract partial text information from a label tag using Selenium and Python

I am trying to loop through different checkboxes and check them if the text is present in the list then click if not then move on. the html element that I have been able to extract is below: <...
0
votes
0answers
12 views

Empty List LXML XPATH

I'm having a problem, from the link provided (http://www.avisosdeocasion.com/Resultados-Inmuebles.aspx?n=venta-casas-nuevo-leon&PlazaBusqueda=2&Plaza=2.html) I'm trying to get the first ...
1
vote
1answer
28 views

Extract nested microdata using xpath

I am trying to extract the recipe name from schema.org microdata using xpath This is the xpath I came up with: //*[@itemtype="http://schema.org/Recipe"]//*[@itemprop="name" and not(ancestor::*[@...
0
votes
0answers
6 views

Is it possible to find relative path locators for mobile or desktop application (non - web app) automation using appium?

For automating non-web applications like mobile app (eg Whatsapp) or a desktop app (eg calculator, taskmanager), the element locator for these type of apps are of absolute path. Sample xpath is ...
0
votes
0answers
9 views

How to create method in Notepad ++ to auto-reset XML value=“1” when it is always changed back to value=“0”

So I am currently working on the Duck Creek configuration system and we set two values in one of our xml files to value="1" in order to enable a toolbar we use that makes tracing back duck creek ...
1
vote
2answers
24 views

How to identify an element through classname even though there are multiple elements with the same classnames using Selenium and Python

<div class="_2S1VP copyable-text selectable-text" data-tab="1" dir="ltr" spellcheck="true" contenteditable="true"></div> <div class="_2S1VP copyable-text selectable-text" data-tab="3" ...
0
votes
1answer
22 views

XPATH in selenium Zillow schools

Trying to create a program that web scrapes Zillow for the schools in a certain neighborhood but I am having some trouble scraping the xpath for the school information (rating, school name, and the ...
0
votes
1answer
23 views

Cannot find the element on the page using Xpath in selenium

I need to obtain prices for the trips between every two stations in Metro North so I wrote the program to webscrap their website. But it does not work as it cannot find the prices on the page. driver ...
0
votes
1answer
25 views

Scraping similarly named tables using rvest

I'm trying to scrape tables of data from different pages on fbref.com using rvest. I've been able to scrape the data from one page using: library(rvest) URL <- "http://fbref.com/en/squads/...
1
vote
1answer
18 views

Compare XPATH attributes

Why does my code not work? I basically have to check if the person is mentioned in "abgebildet" (so i the compared emails but it does not work for some reason) socialnetwork/personen/person[@email = ...
0
votes
3answers
50 views

How to navigate through pages within the website using Selenium and Python

I'm scraping this website( http://rera.rajasthan.gov.in/ProjectSearch) using Python and Selenium. I have the code working but it currently only scrapes the first page, I would like to iterate through ...
1
vote
0answers
17 views

Chropath is not visible/working in Salesforce

The ChroPath extension in Chrome browser is not visible for Salesforce website where as it is working in other sites. Chrome browser version: 83.0.4103.61 ChroPath version: 6.1.4 ChroPath in other ...
1
vote
1answer
41 views

How to handle colon (:) in the name when using Selenium in Python

I am trying to search a number in a web page (http://muisca.dian.gov.co/WebRutMuisca/DefConsultaEstadoRUT.faces). I know the name of the input element is: "vistaConsultaEstadoRUT:...
-1
votes
2answers
39 views

Selenium is unable to find element with data-testid attribute

Trying to find the below element tried the following nothing works can anyone help. <button data-testid="addToClientBasket" class="sc-kfGgVZ kcCRfu"> <span><i class="icon-...

15 30 50 per page
1
2 3 4 5
2162