Module: SitePrism

Defined in:
lib/site_prism.rb,
lib/site_prism/dsl.rb,
lib/site_prism/page.rb,
lib/site_prism/error.rb,
lib/site_prism/logger.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/addressable_url_matcher.rb

Defined Under Namespace

Modules: DSL, ElementChecker, Loadable Classes: AddressableUrlMatcher, BlockError, ElementInvisibilityTimeoutError, ElementVisibilityTimeoutError, FailedLoadValidationError, InvalidElementError, InvalidUrlMatcherError, Logger, MissingBlockError, NoUrlForPageError, NoUrlMatcherForPageError, Page, PageLoadError, Section, SitePrismError, TimeoutError, UnsupportedBlockError, Waiter

Constant Summary collapse

VERSION =
'3.0.3'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.enable_loggingObject



26
27
28
# File 'lib/site_prism.rb', line 26

def enable_logging
  @enable_logging ||= false
end

Class Method Details

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

Yields:

  • (_self)

Yield Parameters:

  • _self (SitePrism)

    the object that the method was called on



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

def configure
  yield self
end

.loggerObject



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

def logger
  @logger ||= SitePrism::Logger.new.create
end