cheezy / page_navigation

Provides basic navigation through a collection of items that use the PageObject pattern.
MIT License
10 stars 7 forks source link

visit page can not be included in route #4

Closed yatsan closed 11 years ago

yatsan commented 11 years ago

I would be great to be able to visit page from route. Something like:

PageObject::PageFactory.routes = { :default => [[LoginPage, :visit], [LoginPage, :login] }

gabyshev commented 11 years ago

@yatsan, use :goto method

yatsan commented 11 years ago

Thank you, that works!