Menu

#143 Add Page.Browser reference

Version_2.next
open
5
2012-09-15
2012-02-17
Anonymous
No

I have been writing a fluent API using the Page model. I wanted to have a method on the page that ran some actions that caused a submit and redirection. I wanted the method on the WatiN Page to return the new (expected) page instance. This isn't possible because Page does not have access to the Browser instance it is tied to.

Exposing the browser instance as a property on Page would allow a method in Page to return Browser.Page<T>(); for the next/current expected page.

Discussion


Log in to post a comment.