How To Navigate A Subframe Inside A Frameset Using Selenium Webdriver With Python?
The layout of the hmtl page is the following :
Solution 1:
SOMMAIRE
frame is not located inside ENTETE
frame (and, according to the HTML fragment - it is not inside of any frame actually). This means you don't need to switch to ENTETE
first. Just switch directly to SOMMAIRE
:
driver.switch_to_default_content() # in case you were inside an iframe before
driver.switch_to.frame("SOMMAIRE")
Solution 2:
Try navigating to SOMMAIRE using XPATH
driver.switchTo().frame(driver.findElement(By.xpath("xpath_of_SOMMARIE")));
Post a Comment for "How To Navigate A Subframe Inside A Frameset Using Selenium Webdriver With Python?"