lib/site-object/page.rb
# DEPRECATED. Use the set_attributes method instead.
# This method can be used to disable page navigation when defining a page class (it sets an
# instance variable called @navigation during initialization.) The use case for this is a page
# that can't be accessed directly and requires some level of browser interaction to reach.
# To disable navigation:
#
#  class SomePage < SomeSite::Page
#    disable_automatic_navigation true
#  end
#
# When navigation is disabled there will be no automatic navigation when the page is called.
# If the current page is not the page that you want a SiteObject::WrongPageError will
# be raised.
# If the visit method is called on the page a SiteObject::PageNavigationNotAllowedError
# will be raised.




When navigation is disabled there will be no automatic navigation when the page is called.
If the current page is not the page that you want a SiteObject::WrongPageError will
be raised.
If the visit method is called on the page a SiteObject::PageNavigationNotAllowedError
will be raised.
When navigation is disabled there will be no automatic navigation when the page is called . If the current page is not the page that you want a SiteObject :: WrongPageError will be raised . If the visit method is called on the page a SiteObject :: PageNavigationNotAllowedError will be raised .
def disable_automatic_navigation
      puts "The disable_automatic_navigation method is deprecated and will be removed in a future release. Use the set_attributes method in place of this one in the class definition. See documentation for more details."
      @page_attributes ||= []
      @page_attributes << :navigation_disabled
      @navigation_disabled = true
    end
def disable_automatic_navigation puts "The disable_automatic_navigation method is deprecated and will be removed in a future release. Use the set_attributes method in place of this one in the class definition. See documentation for more details." @page_attributes ||= [ ] @page_attributes << :navigation_disabled @navigation_disabled = true end
DEPRECATED.
DEPRECATED .