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")]')
# code of closing popup here

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top