This is the HTML file I have. I am trying to use Selenium-Webdriver API along with ChromeDriver to send_keys
to an input
filed inside the <body>
. But I can't access anything which is inside of #document
. I cannot figure out why. Can someone please tell me what this #document
means and how can I access any of the elements inside this using Selenium.
<html>
<head>…<head>
<frameset >
<frame>...</frame>
<frame name="mainFrame" src>
#document
<html>
<head>…</head>
<body>…</body>
</html>
</frame>
</frameset>
</frameset>
This is a router webpage, the actual webpage is HUGE, so I haven't pasted it here.
find_elements_by_xxx
but haven't got any result. I would also like to know what #document means, because I couldn't get an answer by Googling it. – Overbeardocument.getElementsbyName('')
. Seems like everything under #document is invisible. – Overbeardriver.switch_to_default_content()
frame =driver.find_element_by_name('mainFrame')
driver.switch_to_frame(frame)
elem = driver.find_element_by_xpath('//input[@name="ui_pws"]')
– Overbear