how do i access image tags inside html inside iframe using python and selenium?

You need switch content to iframe

iframe = driver.find_element_by_xpath('//iframe[contains(@src, "__poplayer")]')
driver.switch_to.frame(iframe)
# code of closing popup here
driver.switch_to_default_content()

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top