Class: ProjectName::Web::Pages::Home

Inherits:
Base show all
Includes:
QAT::Logger
Defined in:
lib/qat/web/generator/project/lib/web/pages/home.rb

Overview

Home page

Defined Under Namespace

Classes: HomePageNotLoaded

Instance Method Summary collapse

Methods included from QAT::Web::Finders

#find_from_configuration, #page, #within_from_configuration

Methods included from QAT::Web::Configuration

last_access, #last_access, last_access=, #parse_configuration

Methods inherited from QAT::Web::Page

action, actions, #elements, elements, elements_config, elements_file, get_value, values, web_collection, web_element, web_elements

Methods included from QAT::Web::Elements

#load_elements_file

Methods included from QAT::Web::Elements::Waiters

#timeouts, #timeouts_config, #timeouts_file, #wait_until, #wait_until_not_present, #wait_until_not_visible, #wait_until_present, #wait_until_visible

Methods included from QAT::Web::Elements::Config

#valid_config?

Methods included from QAT::Web::Elements::Selector

#selector

Constructor Details

#initializeHome

Returns a new instance of Home.



17
18
19
20
# File 'lib/qat/web/generator/project/lib/web/pages/home.rb', line 17

def initialize
  raise HomePageNotLoaded.new 'Home page was not loaded!' unless has_selector? *selector_locator_name_example
  log.info "Loaded home page with URL: #{current_url}"
end

Instance Method Details

#input_search(search_text) ⇒ Object

Introduce text on search box



23
24
25
# File 'lib/qat/web/generator/project/lib/web/pages/home.rb', line 23

def input_search search_text
  locator_name_example.set search_text
end