See: Description
| Package | Description |
|---|---|
| com.github.jsdevel.testng.selenium |
Top level classes to use.
|
| com.github.jsdevel.testng.selenium.annotations.driverconfig |
Annotations used to configure the chosen WebDriver.
|
| com.github.jsdevel.testng.selenium.annotations.drivers |
Annotations used to set the WebDriver used for a particular test run.
|
| com.github.jsdevel.testng.selenium.annotations.screensizes |
Annotations used to set the screen size for a particular test run.
|
| com.github.jsdevel.testng.selenium.config |
Configuration classes used to store configuration values.
|
| com.github.jsdevel.testng.selenium.exceptions |
Exceptions thrown by TestNG-Selenium.
|
AbstractSuite and pass
your PageFactory as a generic type argument.
AbstractSuite provides a getPageFactory
method to create the page factories passed in as generic type arguments. In
this example, the page factory passed as a generic type on line 7 is
returned by getPageFactory.
PageFactory should return a sub class
of AbstractPage. This allows TestNG-Selenium to do some cool things
when initializing your page objects, like navigating to them when
WebDriver has been created, wiring up annotated fields using
Selenium's PageFactory initializer, and validating that the URL currently
being viewed by WebDriver is valid for the requested page. This approach
also allows you to avoid boilerplate by letting TestNG-Selenium manage your
page factory's lifecycle.
AbstractPage#handlePageInitialized().
Copyright © 2015. All rights reserved.