Book Image

Learning Selenium Testing Tools - Third Edition

Book Image

Learning Selenium Testing Tools - Third Edition

Overview of this book

Table of Contents (22 chapters)
Learning Selenium Testing Tools Third Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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);
  
}