Class: RIESS::HTMLObjectFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/html_object_factory.rb

Instance Method Summary collapse

Constructor Details

#initialize(ie_object, element, parameter, reporter) ⇒ HTMLObjectFactory

Returns a new instance of HTMLObjectFactory.



5
6
7
8
9
10
11
12
13
# File 'lib/html_object_factory.rb', line 5

def initialize(ie_object,element,parameter,reporter)
  @ie_object = ie_object
  @element = element
  @parameter = parameter
  @locator_type = parameter.locator_type
  @locator_value = parameter.locator_value
  @value = parameter.value
  @reporter = reporter
end

Instance Method Details

#get_objectObject



15
16
17
18
19
20
21
# File 'lib/html_object_factory.rb', line 15

def get_object
  if @element.nil?
    element_not_found
  else
    html_object = HTMLGeneric.new(@element,@parameter,create_event,@reporter)  
  end
end