class AutomationObject::State::Element

Element composite for managing state

Public Instance Methods

utilize() click to toggle source

@return [AutomationObject::State::ElementProxy] Selenium proxy

# File lib/automation_object/state/element.rb, line 15
def utilize
  return cache if cache

  element = driver.find_element(*blue_prints.selector_params)
  @active = true
  self.cache = ElementProxy.new(self, element)
end