I’m trying to use Selenium to interact with a specific CSS class that contains the PMA
string inside. I could use XPATH, but the location of the element occasionally changes. I currently have code below to pull the contents of the title-header
:
pma = WebDriverWait(driver,10).until(EC.presence_of_element_located((By.CSS_SELECTOR, 'h6.title-header')))
A hacky way to do it may be to just iterate through every title-header
element and only keep the coordinates of the element that contains PMA
. But as you can see below, there’s multiple places where the title-header
is in the DOM (there’s over 900+). Is there a way for Selenium to navigate to the specific title-header
with the PMA
string inside?