Module: SitePrism

Defined in:
lib/site_prism.rb,
lib/site_prism/page.rb,
lib/site_prism/error.rb,
lib/site_prism/waiter.rb,
lib/site_prism/section.rb,
lib/site_prism/version.rb,
lib/site_prism/loadable.rb,
lib/site_prism/element_checker.rb,
lib/site_prism/element_container.rb,
lib/site_prism/addressable_url_matcher.rb

Defined Under Namespace

Modules: ElementChecker, ElementContainer, Loadable Classes: AddressableUrlMatcher, ElementInvisibilityTimeoutError, ElementVisibilityTimeoutError, ExistenceTimeoutError, FailedLoadValidationError, InvalidElementError, InvalidUrlMatcherError, MissingBlockError, NoUrlForPageError, NoUrlMatcherForPageError, NonExistenceTimeoutError, Page, PageLoadError, Section, SitePrismError, TimeoutError, UnsupportedBlockError, Waiter

Constant Summary collapse

NoUrlForPage =

Legacy Error Code aliases for backwards compatibility

NoUrlForPageError
NoUrlMatcherForPage =
NoUrlMatcherForPageError
InvalidUrlMatcher =
InvalidUrlMatcherError
NoSelectorForElement =
InvalidElementError
TimeoutException =
TimeoutError
TimeOutWaitingForExistenceError =

To avoid message leaking

Class.new(StandardError)
TimeOutWaitingForNonExistenceError =

To avoid message leaking

Class.new(StandardError)
TimeOutWaitingForElementVisibility =

To avoid message leaking

Class.new(StandardError)
TimeOutWaitingForElementInvisibility =

To avoid message leaking

Class.new(StandardError)
UnsupportedBlock =
UnsupportedBlockError
BlockMissingError =
MissingBlockError
NotLoadedError =
FailedLoadValidationError
VERSION =
'2.15.1'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.raise_on_wait_forsObject

Returns the value of attribute raise_on_wait_fors.



15
16
17
# File 'lib/site_prism.rb', line 15

def raise_on_wait_fors
  @raise_on_wait_fors
end

.use_implicit_waitsObject

Returns the value of attribute use_implicit_waits.



15
16
17
# File 'lib/site_prism.rb', line 15

def use_implicit_waits
  @use_implicit_waits
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (SitePrism)

    the object that the method was called on



17
18
19
# File 'lib/site_prism.rb', line 17

def configure
  yield self
end