Groovy Documentation

geb.navigator.factory
[Groovy] Interface InnerNavigatorFactory


interface InnerNavigatorFactory

Creates Navigator instances from zero or more WebElement instances. Designed to be the extension point for injecting a custom navigator implementation.

See Also:
Configuration.getInnerNavigatorFactory
DefaultInnerNavigatorFactory


Method Summary
Navigator createNavigator(Browser browser, List elements)

Create a Navigator instance for the given web elements.

 

Method Detail

createNavigator

Navigator createNavigator(Browser browser, List 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)
Parameters:
browser - The browser to attach the navigators too.
elements - Zero or more content elements to wrap as a navigator
Returns:
A navigator instance, for the given elements


 

Groovy API Documentation for Geb 0.9.1 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org