Home > Net >  I'm having difficulty finding this web element with Selenium webdriver
I'm having difficulty finding this web element with Selenium webdriver

Time:11-02

I am using selenium webdriver to pull data from one website and my goal is to copy and paste that date into another site using python, I am able to pull the data from the 1st site using iFrame XPATH but on the 2nd site I am failing to locate the exact web element. I pasted it below:

<textarea rows="5" aria-invalid="false" placeholder="Paste in a list of emails separated by commas or new lines"  id="mui-2" style="height: 115px;"></textarea>

CodePudding user response:

  1. The site can have more than one iframe.

CodePudding user response:

If this element is placed in the body of html but not in iframe you can try to use one of these approaches:

driver.find_element(By.ID, 'mui-2')

or

driver.find_element(By.XPATH, '//textarea[@placeholder="Paste in a list of emails separated by commas or new lines"]')

If nothing of these helps we'll need to know more about page structure and the code you are using to interact with it.

  • Related