I am trying to process all elements which have text. I know I can iterate over the list and process only those which contain text:
from selenium import webdriver driver = webdriver.Chrome() my_elelements = driver.find_elements_by_xpath("//*") for elm in my_elements: if elm.text!="" 'processing of text but is there a quicker way only find elements with text, with selenium's driver.find_elements_by_ without finding all elements and then filtering only those with text...? Is there a wildcard that can be used here ?
only those with no text? Can you show us how you do that?