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); }
Get Learning Selenium Testing Tools - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.