Module: SeleniumPage

Defined in:
lib/selenium_page.rb,
lib/selenium_page/page.rb,
lib/selenium_page/errors.rb,
lib/selenium_page/element.rb,
lib/selenium_page/page/errors.rb,
lib/selenium_page/element/errors.rb

Overview

SeleniumPage

Defined Under Namespace

Classes: Element, Errors, Page

Class Method Summary collapse

Class Method Details

.configure_scheme_and_authority(scheme_and_authority) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/selenium_page.rb', line 14

def self.configure_scheme_and_authority(scheme_and_authority)
  unless scheme_and_authority.is_a? String
    raise Errors::UnexpectedSchemeAndAuthority
  end

  @scheme_and_authority = scheme_and_authority
end

.configure_wait_time(wait_time) ⇒ Object



26
27
28
29
30
# File 'lib/selenium_page.rb', line 26

def self.configure_wait_time(wait_time)
  raise Errors::UnexpectedWaitTime unless wait_time.is_a? Numeric

  @wait_time = wait_time
end

.scheme_and_authorityObject



22
23
24
# File 'lib/selenium_page.rb', line 22

def self.scheme_and_authority
  @scheme_and_authority
end

.wait_timeObject



32
33
34
# File 'lib/selenium_page.rb', line 32

def self.wait_time
  @wait_time
end