I am unable to select a checkbox from a drop down menu on site. The dropdown is inside a iframe and when i try and switch to the iframe i keep getting TimeoutException
message:.
Below is the code I'm trying and the HTML. I am new to Python so any help on this would be much appreciated.
Python:
wait = WebDriverWait(driver, 20)
frm1= wait.until(EC.presence_of_element_located((By.ID, "ReportViewerControl_ctl04_ctl03_ctl01")))
driver.switch_to.frame(frm1)
HTML:
<iframe id="ReportViewerControl_ctl04_ctl03_ctl01" onclick="event.cancelBubble=true;" onactivate="event.cancelBubble=true;" style="display: block; position: absolute; z-index: 10; left: 208px; top: 35px; width: 198px; height: 166px;" src="javascript:'';" frameborder="0" title="Area place holder" longdesc="Area place holder" name="ReportViewerControl_ctl04_ctl03_ctl01"></iframe>