public final class SeleniumHtmlEvaluator extends org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium> implements HtmlEvaluator
| Constructor and Description |
|---|
SeleniumHtmlEvaluator(com.thoughtworks.selenium.Selenium selenium) |
SeleniumHtmlEvaluator(String name,
com.thoughtworks.selenium.Selenium selenium)
Class constructor specifying the used selenium engine
|
| Modifier and Type | Method and Description |
|---|---|
org.testatoo.core.Selection<Area> |
areas(Map map)
To get the areas on a given map.
|
String |
attribute(String id,
Attribute attribute)
To get the value of an attribute of the html element with a given id
|
Caption |
caption(Table table)
To get the caption of a given table
|
org.testatoo.core.Selection<org.testatoo.core.component.datagrid.Cell> |
cells(org.testatoo.core.component.datagrid.CellContainer cellContainer) |
void |
check(org.testatoo.core.nature.Checkable checkable) |
void |
click(org.testatoo.core.component.Component component,
org.testatoo.core.input.Click which) |
void |
close(org.testatoo.core.component.AbstractWindow window) |
org.testatoo.core.Selection<Colgroup> |
colgroups(Table table)
To get the columns groups of a given table
|
org.testatoo.core.Selection<Col> |
cols(Colgroup colgroup)
To get the columns in a given colgroup
|
org.testatoo.core.Selection<Col> |
cols(Table table)
To get the columns of a given table
|
org.testatoo.core.Selection<org.testatoo.core.component.datagrid.Column> |
columns(org.testatoo.core.component.datagrid.DataGrid datagrid) |
org.testatoo.core.ComponentType |
componentType(String id) |
Boolean |
contains(org.testatoo.core.nature.Container container,
org.testatoo.core.component.Component... component) |
String |
content(org.testatoo.core.component.Component component)
To get the content of a given component
|
String |
content(Option option)
To get the content of a given option.
|
void |
doubleClick(org.testatoo.core.component.Component component) |
void |
dragAndDrop(org.testatoo.core.component.Component from,
org.testatoo.core.component.Component to) |
String[] |
elementsId(String expression)
To get the ids of the html elements corresponding to a given path
|
String |
evaluate(String expression) |
Boolean |
exist(String id,
Attribute attribute)
To know if an attribute is present for a given component.
|
Boolean |
existComponent(String id) |
void |
focusOn(org.testatoo.core.component.Component component) |
Boolean |
hasFocus(org.testatoo.core.component.Component component) |
HtmlElementType |
htmlElementType(String id)
To get the html type of the element with a given id
|
String |
icon(org.testatoo.core.nature.IconSupport iconSupport) |
com.thoughtworks.selenium.Selenium |
implementation() |
Boolean |
isChecked(org.testatoo.core.nature.Checkable checkable) |
Boolean |
isEnabled(org.testatoo.core.component.Component component) |
Boolean |
isReadOnly(org.testatoo.core.component.Field field)
To know if a field is read-only.
|
Boolean |
isVisible(org.testatoo.core.component.Component component) |
String |
label(org.testatoo.core.nature.LabelSupport labelSupport) |
String |
label(Option option)
To get the label of a given option.
|
String |
label(OptionGroup optionGroup)
To get the label of a given option group.
|
Integer |
maxLength(org.testatoo.core.component.AbstractTextField textfield) |
String |
message(org.testatoo.core.component.AlertBox alertbox) |
void |
mouseOut(org.testatoo.core.component.Component component) |
void |
mouseOver(org.testatoo.core.component.Component component) |
String |
name() |
String |
nodename(org.testatoo.core.component.Component component)
To know the nodename for a given component.
|
String |
nodeTextContent(org.testatoo.core.component.Component component)
To get the content of a given component.
|
void |
open(String url)
To open the page corresponding to the given url
|
org.testatoo.core.Selection<OptionGroup> |
optionGroups(Select select)
To get the option groups in a given select.
|
org.testatoo.core.Selection<Option> |
options(OptionGroup optionGroup)
To get the options in a given option group.
|
org.testatoo.core.Selection<Option> |
options(Select select)
To get the options in a given select.
|
String |
pageId() |
String |
pageSource()
To get the current page source
|
org.testatoo.core.Selection<Param> |
params(Object object)
To get the parameters of a given object.
|
void |
press(org.testatoo.core.input.Key key) |
String |
reference(org.testatoo.core.component.Link link) |
void |
reset(org.testatoo.core.component.AbstractTextField textField) |
void |
reset(Form form)
To reset a given form.
|
org.testatoo.core.Selection<org.testatoo.core.component.datagrid.Row> |
rows(org.testatoo.core.component.datagrid.DataGrid datagrid) |
void |
select(String value,
org.testatoo.core.component.ListModel listModel) |
Boolean |
selected(Option option)
To know if an option is selected.
|
String |
selectedFilePath(org.testatoo.core.component.FileDialog fileDialog) |
org.testatoo.core.Selection<Option> |
selectedOptions(Select select)
To get the selected options in a given select
|
void |
selectFilePath(String filePath,
org.testatoo.core.component.FileDialog fileDialog) |
String |
source(org.testatoo.core.component.Image image) |
void |
submit(Form form)
To submit a given form.
|
TBody |
tbody(Table table)
To get the Tbody of a given table
|
org.testatoo.core.Selection<Td> |
td(Tr tr)
To get the td elements of a given Tr
|
String |
text(org.testatoo.core.nature.TextSupport textSupport) |
TFoot |
tfoot(Table table)
To get the Tfoot of a given table
|
org.testatoo.core.Selection<Th> |
th(Tr tr)
To get the th elements of a given Tr
|
THead |
thead(Table table)
To get the Thead of a given table
|
String |
title(org.testatoo.core.nature.TitleSupport titleSupport) |
String |
toString() |
org.testatoo.core.Selection<Tr> |
tr(org.testatoo.core.component.Component component)
To get the tr elements of a given component (Table, TBody, THead or TFoot)
|
void |
type(String text) |
void |
unCheck(org.testatoo.core.component.CheckBox checkbox) |
void |
unselect(String value,
org.testatoo.core.component.ListModel listModel) |
void |
unselectAll(org.testatoo.core.component.ListModel listModel) |
String |
value(org.testatoo.core.nature.ValueSupport valueSupport) |
buttons, buttons, keyDown, message, message, release, release, selectedValues, setI18nCharConverter, valuespublic SeleniumHtmlEvaluator(String name, com.thoughtworks.selenium.Selenium selenium)
name - of the evaluatorselenium - the selenium enginepublic SeleniumHtmlEvaluator(com.thoughtworks.selenium.Selenium selenium)
public com.thoughtworks.selenium.Selenium implementation()
implementation in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>Evaluatorpublic String name()
name in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>name in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>public String pageId()
pageId in interface HtmlEvaluatorpublic Boolean existComponent(String id)
existComponent in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>existComponent in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic String text(org.testatoo.core.nature.TextSupport textSupport)
text in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>text in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic String icon(org.testatoo.core.nature.IconSupport iconSupport)
icon in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>icon in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic Boolean isVisible(org.testatoo.core.component.Component component)
isVisible in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>isVisible in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic Boolean isEnabled(org.testatoo.core.component.Component component)
isEnabled in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>isEnabled in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void check(org.testatoo.core.nature.Checkable checkable)
check in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>check in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic Boolean isChecked(org.testatoo.core.nature.Checkable checkable)
isChecked in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>isChecked in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void unCheck(org.testatoo.core.component.CheckBox checkbox)
unCheck in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>unCheck in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic String value(org.testatoo.core.nature.ValueSupport valueSupport)
value in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>value in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic String source(org.testatoo.core.component.Image image)
source in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>source in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic String label(org.testatoo.core.nature.LabelSupport labelSupport)
label in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>label in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic Integer maxLength(org.testatoo.core.component.AbstractTextField textfield)
maxLength in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>maxLength in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void reset(org.testatoo.core.component.AbstractTextField textField)
reset in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>reset in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void selectFilePath(String filePath, org.testatoo.core.component.FileDialog fileDialog)
selectFilePath in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>selectFilePath in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic String selectedFilePath(org.testatoo.core.component.FileDialog fileDialog)
selectedFilePath in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>selectedFilePath in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void unselect(String value, org.testatoo.core.component.ListModel listModel)
unselect in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>unselect in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void unselectAll(org.testatoo.core.component.ListModel listModel)
unselectAll in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>unselectAll in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void select(String value, org.testatoo.core.component.ListModel listModel)
select in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>select in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic Boolean contains(org.testatoo.core.nature.Container container, org.testatoo.core.component.Component... component)
contains in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>contains in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic String label(Option option)
HtmlEvaluatorlabel in interface HtmlEvaluatoroption - the given optionEvaluatorpublic String label(OptionGroup optionGroup)
HtmlEvaluatorlabel in interface HtmlEvaluatoroptionGroup - the given option groupEvaluatorpublic Boolean selected(Option option)
HtmlEvaluatorselected in interface HtmlEvaluatoroption - the given optionEvaluatorpublic Boolean hasFocus(org.testatoo.core.component.Component component)
hasFocus in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>hasFocus in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic String title(org.testatoo.core.nature.TitleSupport titleSupport)
title in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>title in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic String message(org.testatoo.core.component.AlertBox alertbox)
message in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>message in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic org.testatoo.core.Selection<org.testatoo.core.component.datagrid.Column> columns(org.testatoo.core.component.datagrid.DataGrid datagrid)
columns in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>columns in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic org.testatoo.core.Selection<org.testatoo.core.component.datagrid.Row> rows(org.testatoo.core.component.datagrid.DataGrid datagrid)
rows in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>rows in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic org.testatoo.core.Selection<org.testatoo.core.component.datagrid.Cell> cells(org.testatoo.core.component.datagrid.CellContainer cellContainer)
cells in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>cells in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>public org.testatoo.core.ComponentType componentType(String id)
componentType in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>componentType in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void click(org.testatoo.core.component.Component component,
org.testatoo.core.input.Click which)
click in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>click in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void doubleClick(org.testatoo.core.component.Component component)
doubleClick in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>doubleClick in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void mouseOver(org.testatoo.core.component.Component component)
mouseOver in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>mouseOver in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void mouseOut(org.testatoo.core.component.Component component)
mouseOut in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>mouseOut in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void dragAndDrop(org.testatoo.core.component.Component from,
org.testatoo.core.component.Component to)
dragAndDrop in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>dragAndDrop in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void focusOn(org.testatoo.core.component.Component component)
focusOn in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>focusOn in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void type(String text)
type in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>type in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void press(org.testatoo.core.input.Key key)
press in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>press in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void close(org.testatoo.core.component.AbstractWindow window)
close in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>close in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic String reference(org.testatoo.core.component.Link link)
reference in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>reference in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>Evaluatorpublic void open(String url)
HtmlEvaluatoropen in interface HtmlEvaluatoropen in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>open in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>url - the url of the pageHtmlEvaluatorpublic String attribute(String id, Attribute attribute)
HtmlEvaluatorattribute in interface HtmlEvaluatorid - the id of the html elementattribute - the attributeHtmlEvaluatorpublic Boolean exist(String id, Attribute attribute)
HtmlEvaluatorexist in interface HtmlEvaluatorid - the id of the componentattribute - the attribute we want to know if presentHtmlEvaluatorpublic String pageSource()
HtmlEvaluatorpageSource in interface HtmlEvaluatorpageSource in interface org.testatoo.core.Evaluator<com.thoughtworks.selenium.Selenium>pageSource in class org.testatoo.core.EvaluatorSkeleton<com.thoughtworks.selenium.Selenium>HtmlEvaluatorpublic org.testatoo.core.Selection<OptionGroup> optionGroups(Select select)
HtmlEvaluatoroptionGroups in interface HtmlEvaluatorselect - the given selectHtmlEvaluatorpublic org.testatoo.core.Selection<Option> options(Select select)
HtmlEvaluatoroptions in interface HtmlEvaluatorselect - the given selectHtmlEvaluatorpublic org.testatoo.core.Selection<Option> selectedOptions(Select select)
HtmlEvaluatorselectedOptions in interface HtmlEvaluatorselect - the listHtmlEvaluatorpublic org.testatoo.core.Selection<Option> options(OptionGroup optionGroup)
HtmlEvaluatoroptions in interface HtmlEvaluatoroptionGroup - the given option groupHtmlEvaluatorpublic org.testatoo.core.Selection<Param> params(Object object)
HtmlEvaluatorparams in interface HtmlEvaluatorobject - the given objectHtmlEvaluatorpublic org.testatoo.core.Selection<Area> areas(Map map)
HtmlEvaluatorareas in interface HtmlEvaluatormap - the given mapHtmlEvaluatorpublic org.testatoo.core.Selection<Col> cols(Colgroup colgroup)
HtmlEvaluatorcols in interface HtmlEvaluatorcolgroup - the given colgroupHtmlEvaluatorpublic Caption caption(Table table)
HtmlEvaluatorcaption in interface HtmlEvaluatortable - the given tableHtmlEvaluatorpublic String content(org.testatoo.core.component.Component component)
HtmlEvaluatorcontent in interface HtmlEvaluatorcomponent - the given componentHtmlEvaluatorpublic THead thead(Table table)
HtmlEvaluatorthead in interface HtmlEvaluatortable - the given tableHtmlEvaluatorpublic TBody tbody(Table table)
HtmlEvaluatortbody in interface HtmlEvaluatortable - the given tableHtmlEvaluatorpublic TFoot tfoot(Table table)
HtmlEvaluatortfoot in interface HtmlEvaluatortable - the given tableHtmlEvaluatorpublic org.testatoo.core.Selection<Tr> tr(org.testatoo.core.component.Component component)
HtmlEvaluatortr in interface HtmlEvaluatorcomponent - the given componentHtmlEvaluatorpublic org.testatoo.core.Selection<Td> td(Tr tr)
HtmlEvaluatortd in interface HtmlEvaluatortr - the given TrHtmlEvaluatorpublic org.testatoo.core.Selection<Th> th(Tr tr)
HtmlEvaluatorth in interface HtmlEvaluatortr - the given TrHtmlEvaluatorpublic org.testatoo.core.Selection<Col> cols(Table table)
HtmlEvaluatorcols in interface HtmlEvaluatortable - the given tableHtmlEvaluatorpublic org.testatoo.core.Selection<Colgroup> colgroups(Table table)
HtmlEvaluatorcolgroups in interface HtmlEvaluatortable - the given tableHtmlEvaluatorpublic String content(Option option)
HtmlEvaluatorcontent in interface HtmlEvaluatoroption - the given optionHtmlEvaluatorpublic void submit(Form form)
HtmlEvaluatorsubmit in interface HtmlEvaluatorform - the given formHtmlEvaluatorpublic void reset(Form form)
HtmlEvaluatorreset in interface HtmlEvaluatorform - the given formHtmlEvaluatorpublic Boolean isReadOnly(org.testatoo.core.component.Field field)
HtmlEvaluatorisReadOnly in interface HtmlEvaluatorfield - the given fieldHtmlEvaluatorpublic String[] elementsId(String expression)
HtmlEvaluatorelementsId in interface HtmlEvaluatorexpression - the path for the html elementsHtmlEvaluatorpublic HtmlElementType htmlElementType(String id)
HtmlEvaluatorhtmlElementType in interface HtmlEvaluatorid - the id of the html elementHtmlEvaluatorpublic String nodeTextContent(org.testatoo.core.component.Component component)
HtmlEvaluatornodeTextContent in interface HtmlEvaluatorcomponent - the given componentHtmlEvaluatorpublic String nodename(org.testatoo.core.component.Component component)
HtmlEvaluatornodename in interface HtmlEvaluatorcomponent - the given componentHtmlEvaluatorCopyright © 2008-2013 Ovea. All Rights Reserved.