Class: Bucky::TestEquipment::PageObject::BasePageObject

Inherits:
Object
  • Object
show all
Includes:
SeleniumHandler::WaitHandler, Utils::YamlLoad
Defined in:
lib/bucky/test_equipment/pageobject/base_pageobject.rb

Constant Summary collapse

FINDERS =
{
  class: 'class name',
  class_name: 'class name',
  css: 'css selector',
  id: 'id',
  link: 'link text',
  link_text: 'link text',
  name: 'name',
  partial_link_text: 'partial link text',
  tag_name: 'tag name',
  xpath: 'xpath'
}.freeze

Instance Method Summary collapse

Methods included from SeleniumHandler::WaitHandler

wait_until_helper

Methods included from Utils::YamlLoad

#file_sort_hierarchy, #load_yaml

Constructor Details

#initialize(service, device, page_name, driver) ⇒ BasePageObject

Returns a new instance of BasePageObject.



28
29
30
31
# File 'lib/bucky/test_equipment/pageobject/base_pageobject.rb', line 28

def initialize(service, device, page_name, driver)
  @driver = driver
  generate_parts(service, device, page_name)
end