The object that produces Navigator objects. A browser has-a NavigatorFactory, and passes it down to pages/modules etc.
Type Params | Return Type | Name and description |
---|---|---|
|
Navigator |
createFromNavigators(Iterable<Navigator> navigators) Create a navigator, backed by the given navigators. |
|
Navigator |
createFromWebElements(Iterable<WebElement> elements) Create a navigator, backed by the given web elements. |
|
Navigator |
getBase() The base navigator for this factory. |
|
Locator |
getLocator() The locator used for all content lookups from this factory. |
|
NavigatorFactory |
relativeTo(Navigator newBase) Create a new factory, relative to the given navigator. |
Create a navigator, backed by the given navigators.
navigators
- The navigators to back the navigatorCreate a navigator, backed by the given web elements.
elements
- The web elements to back the navigator.The base navigator for this factory.
The locator used for all content lookups from this factory.
Create a new factory, relative to the given navigator.
newBase
- The base to use for the new navigator factory.Groovy API Documentation for Geb 2.2 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org