page_url
is a class method provided by including the PageObject module
. It sets the url for the page so you can use the visit_page
factory in your test:
object MyPage
include PageObject
page_url "http://example.com/"
end
In a test somewhere:
visit_page MyPage do |page|
page.some_object_element.do_something
end
navigate_to
is browser functionality exposed directly in your test via some World
magic.