public class Contains extends Assert
Constructor and Description |
---|
Contains(Element element,
OutputFile file) |
Modifier and Type | Method and Description |
---|---|
void |
attribute(String attribute)
Verifies that the element contains the provided expected attribute.
|
void |
clazz(String expectedClass)
Verifies that the element's class contains the provided expected class.
|
void |
columns(int numOfColumns)
Verifies that the element has the expected number of columns.
|
void |
rows(int numOfRows)
Verifies that the element has the expected number of rows.
|
void |
selectOption(String option)
Verifies that the element's options contains the provided expected
option.
|
void |
selectOptions(int numOfOptions)
Verifies that the element has the expected number of options.
|
void |
selectValue(String selectValue)
Verifies that the element's options contains the provided expected value.
|
void |
text(String expectedValue)
Verifies that the element's text contains the provided expected text.
|
void |
value(String expectedValue)
Verifies that the element's value contains the provided expected value.
|
getAttributes, getValue, isPresent, isPresentSelect, isPresentTable, isSelect, isTable
public Contains(Element element, OutputFile file)
public void clazz(String expectedClass)
expectedClass
- - the expected class valuepublic void attribute(String attribute)
attribute
- - the attribute to check forpublic void text(String expectedValue)
expectedValue
- the expected value of the elementpublic void value(String expectedValue)
expectedValue
- the expected value of the elementpublic void selectOption(String option)
option
- the option expected in the listpublic void selectValue(String selectValue)
selectValue
- the expected input value of the elementpublic void selectOptions(int numOfOptions)
numOfOptions
- the expected number of options in the select elementpublic void columns(int numOfColumns)
numOfColumns
- the expected number of column elements of a tablepublic void rows(int numOfRows)
numOfRows
- the expected number of row elements of a tableCopyright © 2017. All rights reserved.