Method: PageObject::Platforms::SeleniumWebDriver::PageObject#in_iframe

Defined in:
lib/page-object/platforms/selenium_webdriver/page_object.rb

#in_iframe(identifier, frame = nil, &block) ⇒ Object

platform method to switch to an iframe and execute a block See PageObject#in_frame



159
160
161
162
163
# File 'lib/page-object/platforms/selenium_webdriver/page_object.rb', line 159

def in_iframe(identifier, frame=nil, &block)
  switch_to_frame([iframe: identifier])
  block.call(nil)
  @browser.switch_to.default_content
end