Method: PageObjectWrapper::Element#initialize

Defined in:
lib/page_object_wrapper/Element.rb

#initialize(label, type) ⇒ Element

Returns a new instance of Element.



7
8
9
10
11
12
13
# File 'lib/page_object_wrapper/Element.rb', line 7

def initialize(label, type)
  super label
  @type = type
  @menu = Hash.new
  @press_action = :click
  @required = false
end