Class: SeleniumPlus::Iframe

Inherits:
Object
  • Object
show all
Extended by:
Container
Includes:
Finders
Defined in:
lib/selenium_plus/page_obj/iframe.rb

Instance Method Summary collapse

Methods included from Container

element, elements, iframe, section

Methods included from Finders

#find, #find_all

Constructor Details

#initialize(iframe_element) ⇒ Iframe

Returns a new instance of Iframe.



6
7
8
# File 'lib/selenium_plus/page_obj/iframe.rb', line 6

def initialize(iframe_element)
  SeleniumPlus.driver.switch_to_frame(iframe_element)
end