Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (13 sloc) 0.649 kb
# -*- coding: utf-8 -*-
# Copyright 2012 splinter authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
from __future__ import with_statement
class IFrameElementsTest(object):
def test_can_work_on_iframes(self):
"""can work on iframes and switch back to the page"""
with self.browser.get_iframe('iframemodal') as frame:
value = frame.find_by_tag('h1').first.value
self.assertEqual(value, 'IFrame Example Header')
value = self.browser.find_by_tag('h1').first.value
self.assertEqual('Example Header', value)
Jump to Line
Something went wrong with that request. Please try again.