Category "xpath"

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

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".ui flu~"}

This is the code I use: import requests as r, sys as sus, bs4 as bs, webbrowser as wb from selenium import webdriver as wd dr = wd.Chrome() b = r.get("https:/

Need to Fetch the radio button value, but in the console that is highlighting only by ": :before" i am not able to fetch that

I wanted to fetch the Radio button is selected or not, but not able to fetch that property, because that is highlighting ": :before" enter image description her

Need to Fetch the radio button value, but in the console that is highlighting only by ": :before" i am not able to fetch that

I wanted to fetch the Radio button is selected or not, but not able to fetch that property, because that is highlighting ": :before" enter image description her

Issues with selecting #text inside an html, div enclosed in double quotes using xpath/lxml in python

I'm trying to extract the Fund Summary text on the following Yahoo Finance page using python: Thus far, XPath has worked well using the XPath with the text() me

python selenium xpath loop skips random elements

I was trying to select all the 264 Recipients from the second form on this website and I used the code below: s = Service('./chromedriver.exe') driver = webdriv

xpath extract field name and "column" name from jdo mapping

First time dealing with xpath and XML data. I have below xpath query that I got through some Stack Overflow answers. Below, I want to extract all the column nam

Python selenium clicking a button

I am trying to write a python script to automatically download csv using the "Download CSV" button from the below link: https://chartink.com/screener/copy-super