def modal_must_show(self, string):
    for _ in range(12):
        for frame in self.driver.find_elements_by_tag_name('iframe'):
            pass
How do I access a dynamically added iframe using Selenium WebDriver?