Questions tagged as 'xpath'

1
answer

Get data from an XML file, using XPath and C #

I have the following document XML , and I want to do a search / filter by name GivenName using Xpath . How to do? XML <bloodonors> <donor> <Number>1</Number> <Gender>male</Gender>...
asked by 07.11.2017 / 10:23
0
answers

Capturing child attribute value using xpath

With xpath I want to get the value of the href attribute below, but I need to make sure that the url is inside the li tag. <li class="event"> <span class="mediaCoverageCont"> </span> <a href="/esportes-futebol/liga-eur...
asked by 24.08.2017 / 14:55
0
answers

Compare childnode with C # variable and XML (Xpath)

I have an xml file with several structures. I have a structure called Product that has a ProductCode field and I have a structure called SalesInvoice , inside it I have a Invoice field, inside Invoice has anothe...
asked by 26.04.2017 / 12:39
1
answer

Capture using Xpath

I'm doing a capture of a site using python (scrapy) and xpath How to capture only 232.990 of the code below? <div class="price-advantages-container"> <div class="price-comparison"> <div itemprop="price" class="pri...
asked by 28.08.2018 / 20:34
1
answer

How to iterate to get all xpath-evaluate results

In general to iterate% elements xpath I use a loop like this: <?php $dom = new DOMDocument; $dom->loadHTML('<div class="xGh">Test1</div><div class="xGh">Test2</div><div class="xGh">Test3</div>')...
asked by 01.11.2017 / 15:59
1
answer

Get content from a div without picking up child elements with xPath

Good afternoon! I need to get information that is contained in divs in an HTML. HTML: <div id="fundo_conteudo_noticia_setor" class="textogeral marrom"> <div id="data_noticia_setor" class="textogeral_bold verde">...
asked by 12.09.2017 / 19:49
0
answers

How to get span text? but when one has an img in that span of error!

The following code gets the span , but if it has a img it has an error. user = driver.find_element_by_xpath('//span[@title = "{}"]'.format(names)) user.click() My system takes title from span and clicks it. But wh...
asked by 14.09.2018 / 18:13
0
answers

Help to get the element through the Selenium xpath

I need help getting element in selenium: Elements name: j_username and name: j_password . <form method="POST" action="j_security_check" onsubmit="return(OnLoginSubmit());"> <input type="hidden" name="operation"> <di...
asked by 10.05.2018 / 17:06
0
answers

How to get the next strong value with jquery?

Given that I have the following HTML structure, how could I get the value, after </strong> and before <br> <strong>Categoria: </strong>Padaria &amp; Panificação<br>     
asked by 12.05.2018 / 21:33
1
answer

Parse Xpath from Int

I have a scrapy running the for to bring the day and the link to something. Ex: t_day = div.xpath('.//a/text()').extract_first() a_day = div.xpath('.//a/@href').extract_first() day = int(t_day) if day > last_day: print(t_day, a_day)...
asked by 04.05.2018 / 20:57