'can work on iframes and switch back to the page'

def test_can_work_on_iframes(self):

    with self.browser.get_iframe('iframemodal') as frame:
        value = frame.find_by_tag('h1').value
        self.assertEqual(value, 'IFrame    Example    Header')
    value = self.browser.find_by_tag('h1').value
    self.assertEqual('Example    Header', value)
