Groovy Documentation

geb.content
[Groovy] Class TemplateDerivedPageContent

java.lang.Object
  geb.content.TemplateDerivedPageContent
All Implemented Interfaces:
Navigator

abstract class TemplateDerivedPageContent

Field Summary
protected Navigator _navigator

 
Method Summary
boolean asBoolean()

Navigator click()

Browser getBrowser()

WebDriver getDriver()

int getHeight()

Returns the height of the first element the navigator matches or 0 if it matches nothing.

Page getPage()

The page that this content is part of

PageContentTemplateParams getTemplateParams()

int getWidth()

Returns the width of the first element the navigator matches or 0 if it matches nothing.

int getX()

Returns the x coordinate (from the top left corner) of the first element the navigator matches or 0 if it matches nothing.

int getY()

Returns the y coordinate (from the top left corner) of the first element the navigator matches or 0 if it matches nothing.

void init(PageContentTemplate template, Navigator navigator, Object[] args)

Called by the template when created (i.e. is not public).

boolean isPresent()

def methodMissing(String name, def args)

def propertyMissing(String name)

def propertyMissing(String name, def val)

void require()

String toString()

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

_navigator

@Delegate
protected Navigator _navigator


 
Method Detail

asBoolean

boolean asBoolean()


click

Navigator click()


getBrowser

Browser getBrowser()


getDriver

WebDriver getDriver()


getHeight

int getHeight()
Returns the height of the first element the navigator matches or 0 if it matches nothing.

To get the height of all matched elements you can use the spread operator navigator*.height


getPage

Page getPage()
The page that this content is part of


getTemplateParams

PageContentTemplateParams getTemplateParams()


getWidth

int getWidth()
Returns the width of the first element the navigator matches or 0 if it matches nothing.

To get the width of all matched elements you can use the spread operator navigator*.width


getX

int getX()
Returns the x coordinate (from the top left corner) of the first element the navigator matches or 0 if it matches nothing.

To get the x coordinate of all matched elements you can use the spread operator navigator*.x


getY

int getY()
Returns the y coordinate (from the top left corner) of the first element the navigator matches or 0 if it matches nothing.

To get the y coordinate of all matched elements you can use the spread operator navigator*.y


init

void init(PageContentTemplate template, Navigator navigator, Object[] args)
Called by the template when created (i.e. is not public). We don't use a constructor to prevent users from having to implement them.


isPresent

boolean isPresent()


methodMissing

def methodMissing(String name, def args)


propertyMissing

def propertyMissing(String name)


propertyMissing

def propertyMissing(String name, def val)


require

void require()


toString

String toString()


 

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