Using LoadableComponent
Imagine that you have to work with a flow that takes you through a number of pages. LoadableComponent
allows us to set up a workflow. To get this right, we need to pass in something like the following code snippet while performing your test setup:
@Before public void prepareComponents() { WebDriver selenium = new FirefoxDriver(); HomePage homePage = new HomePage(selenium); Chapter2 chapter2 = new SecuredPage(selenium, homePage); }