Groovy Documentation

geb.navigator.factory
[Groovy] Interface NavigatorFactory


interface NavigatorFactory

The object that produces Navigator objects. A browser has-a NavigatorFactory, and passes it down to pages/modules etc.


Method Summary
Navigator createFromNavigators(Iterable navigators)

Create a navigator, backed by the given navigators.

Navigator createFromWebElements(Iterable elements)

Create a navigator, backed by the given web elements.

Navigator getBase()

The base for all content lookups from this factory.

NavigatorFactory relativeTo(Navigator newBase)

Create a new factory, relative to the given navigator.

 

Method Detail

createFromNavigators

Navigator createFromNavigators(Iterable navigators)
Create a navigator, backed by the given navigators.
Parameters:
navigators - The navigators to back the navigator
Returns:
The created navigator


createFromWebElements

Navigator createFromWebElements(Iterable elements)
Create a navigator, backed by the given web elements.
Parameters:
elements - The web elements to back the navigator.
Returns:
The created navigator


getBase

Navigator getBase()
The base for all content lookups from this factory.
Returns:
The base for all content lookups from this factory.


relativeTo

NavigatorFactory relativeTo(Navigator newBase)
Create a new factory, relative to the given navigator.
Parameters:
newBase - The base to use for the new navigator factory.
Returns:
The new navigator factory.


 

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