Groovy Documentation

geb.content
[Groovy] Class TemplateDerivedPageContent

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

abstract class TemplateDerivedPageContent

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()

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()

void require()

String toString()

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

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()


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()


require

void require()


toString

String toString()


 

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