Creates Navigator instances from zero or more WebElement instances. Designed to be the extension point for injecting a custom navigator implementation.
Type Params | Return Type | Name and description |
---|---|---|
|
Navigator |
createNavigator(Browser browser, List<WebElement> elements) Create a Navigator instance for the given web elements. |
Create a Navigator instance for the given web elements. The elements list may be null or zero length. Which means that they navigator should represent “no matched content” (a.k.a EmptyNavigator)
browser
- The browser to attach the navigators too.elements
- Zero or more content elements to wrap as a navigatorGroovy API Documentation for Geb 2.2 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org