Category "xpath"

VBA Selenium: Selecting a button behind multiple div tags

I was using selenium with VBA and there is the current webpage. I was trying to get the bot to select the "exportbutton" ID, but I have already tried Findelemen

IMPORTXML Change the imported format in a cell

I used the IMPORTXML formula to import values from a website. The formula imports a list of 4 cells in a column. The value of the 3rd cell is a number with a do

Fix wait time for Selenium Form using Python

I'm new to Python and am trying to automate a form fill up. I have done all the work but when trying to "Submit" it's not reading the XPATH and hence not clicki

XPath/XSLT select only where count is less than number

Given the structure below. How would you go about selecting only those elements where the number of elements of same group is less than - let's say six. In this

Body Expectation with XPATH not working on mockserver

I am using MockServer since a short time and trying to create an expectation on the Request-Body. My Body is an XML and I am using XPath to match the Request, b

Multiple possible values when searching item by XPath | Scrapy

I would like to find title bar icon with rel = 'icon' or 'shortcut icon'. So I'm trying to do something like this: response.xpath("head/link[@rel='icon' or 'sho

The right XPATH for IMPORTXML (for Yahoo Finance)

I am trying to extract the Stock Price History Section from Yahoo Finance Statistics page. The following Xpath seems to point to the right section, but the func

Problem locating element with xpath in Selenium

I am having some troubles to locate an element with Selenium. The page html where I'm looking for it is: enter image description here Specifically, I want to ge

How to use root.findall with AND condition

XML be something like this: <Section SectionLevel="1" SectionID="Food"> <Section SectionLevel="2" SectionID="Fruit"> <Content>Appl

WebElement.findElement is not finding child element

I am trying to get child element (Card Number) from an html codes where html tags and class names are same. Below is the html code snippet <li class="payment

Unable to locate an element with the xpath expression using Selenium

I am now convinced that there is no solution to this. But in case there is someone out there who can help: Whole Element that I want to click on genesys cloud i

Unable to locate an element with the xpath expression using Selenium

I am now convinced that there is no solution to this. But in case there is someone out there who can help: Whole Element that I want to click on genesys cloud i

On Selenium WebDriver how to get Text from div with Mark Tag

On Selenium Webdriver, how I can retrieve entire text from div with Mark Tag? I need to verify that the word 'correctly' is present. Example HTML code: <div

How to extract multiple texts from span elements using python selenium?

I am trying to extract all the texts in span into list, using the following HTML code from Selenium webdriver method: ['1a', '1b', '1c', '2a', ' ', ' ', '3a', '

Scrapy - getting HTML without outer tag

I'm scraping a page, using Scrapy. I want the HTML contents of the TD with "text" class: <tr valign="top"> <td class="text" width="100%"> <

How can I remove all comments on a large xml file using python?

I am working on a small project for my office. The purpose of this script is take the inputs (siteid), and open/recall information from that file. Once the file

can't click() an onclick element with selenium (tried text link, partial text link, xpath, css selector)

I need to scrap some data from this url: https://www.cnrtl.fr/definition/coupe The data/results I need to scrap are located in those 3 different tabs: I'm unab

Conditional testing in Cypress - check if cy.xpath-element has class value

What I want to do: I want to click a button. Then some element expands, and the button class name is changing. I only want to expand the element if not done yet

A way of selecting the next xpath element

How can i switch to the next element from a table using python and selenium. I have a website with a table that looks like this: https://i.stack.imgur.com/ZYwKU

How to click all arrow buttons within a dynamic table on website?

On this website (https://www.tradingview.com/symbols/NASDAQ-TSLA/financials-income-statement/), there is a table with clickable arrows on some of the rows. I've