Category "xpath"

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