I am having a really tough time using Selenium with an iframe.
So basically the website is built like this :
<tbody>
<tr>
<td>
<iframe>
<html>
</iframe>
</td>
</tr>
</tbody>
</table>
<table>
I want to access the html tag and use the send key there so the form that is displayed is filled automaticaly. I tried using the Xpath but it's not working. After around 3 days of trial and error and looking everywhere I can't find a solution I get errrors like this: frame.send_keys(Keys.TAB) AttributeError: 'list' object has no attribute 'send_keys'
I even tried sending the TAB key to select what I wnat but nothing is working.
frame = driver.find_elements_by_xpath(
'/html/body/div[11]/div/div/form/div[1]/div/div/form/div[1]/div[2]/table/tbody/tr[2]/td')
time.sleep(1)
time.sleep(1)
frame.send_keys(Keys.TAB)
frame.send_keys("hello")
If someone has a solution I would be very grateful.
Best