interface NavigatorFactory
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 |
---|---|---|
|
abstract Navigator |
createDynamic(Supplier<Iterable<WebElement>> elementsSupplier) Create a dynamic navigator, backed by the given web elements supplier. |
|
abstract Navigator |
createFromNavigators(Iterable<Navigator> navigators) Create a navigator, backed by the given navigators. |
|
abstract Navigator |
createFromWebElements(Iterable<WebElement> elements) Create a navigator, backed by the given web elements. |
|
abstract Navigator |
getBase() The base navigator for this factory. |
|
abstract Locator |
getLocator() The locator used for all content lookups from this factory. |
|
abstract NavigatorFactory |
relativeTo(Navigator newBase) Create a new factory, relative to the given navigator. |
Create a dynamic navigator, backed by the given web elements supplier.
elementsSupplier
- A supplier of web elements to back the 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 7.0 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org