I'm trying to fill a small form with Selenium, but it has dynamic elements that it doesn't let me capture in any way. In this link you can see the form: https://www.asefasalud.es/
I have tried almost all the search elements, to capture the object, but none of them work.
driver.find_element_by_xpath("//*[contains(@id, 'inputDiafnac')]").get(0).send_keys("2")
driver.find_element_by_xpath("//*[contains(@id, 'inputDiafnac')]").send_keys("2")
driver.find_element_by_xpath("//input[@id='inputDiafnac1']").send_keys("2")
driver.find_element_by_css_selector("#inputDiafnac1").send_keys("2")
driver.find_element_by_id("inputDiafnac1").send_keys("2")
I don't know if there is another way to capture these elements, thank you.


<object type="text/html" name="calcular-seguro-medico" ... sandbox="allow-same-origin allow-scripts allow-forms allow-top-navigation" data="https://www.asefasalud.es/seguros/1.0/tarificador/#!/HomeWeb/" frameborder="0" id="iFrameResizer0">I've never seen this before and am not sure how to handle it. I would start by trying the typical switch to IFRAME methods available but somehow I don't expect them to work.