public class Equals extends Assert
Constructor and Description |
---|
Equals(Element element,
OutputFile file) |
Modifier and Type | Method and Description |
---|---|
void |
attribute(String attribute,
String expectedValue)
Verifies that the element has an attribute with a value equals to the
value provided.
|
void |
clazz(String expectedClass)
Verifies that the element's class equals the provided expected class.
|
void |
cssValue(String attribute,
String expectedValue)
Verifies that the element has a css attribute with a value equal to the
value provided.
|
void |
selectedOption(String expectedText)
Verifies that the element's selected option equals the provided expected
option.
|
void |
selectedValue(String expectedValue)
Verifies that the element's selected value equals the provided expected
value.
|
void |
selectOptions(String... expectedOptions)
Verifies that the element's select options equal the provided expected
options.
|
void |
selectValues(String... expectedValues)
Verifies that the element's select values equal the provided expected
values.
|
void |
text(int row,
int col,
String text)
Verifies that the element's text in a particular cell equals the provided
expected text.
|
void |
text(String expectedText)
Verifies that the element's text equals the provided expected text.
|
void |
value(String expectedValue)
Verifies that the element's value equals the provided expected value.
|
getAttributes, getValue, isPresent, isPresentSelect, isPresentTable, isSelect, isTable
public Equals(Element element, OutputFile file)
public void cssValue(String attribute, String expectedValue)
attribute
- - the css attribute to be checkedexpectedValue
- the expected css value of the passed attribute of the elementpublic void clazz(String expectedClass)
expectedClass
- - the full expected class valuepublic void attribute(String attribute, String expectedValue)
attribute
- - the attribute to be checkedexpectedValue
- the expected value of the passed attribute of the elementpublic void text(String expectedText)
expectedText
- the expected value of the elementpublic void text(int row, int col, String text)
row
- - the number of the row in the table - note, row numbering
starts at 1, NOT 0col
- - the number of the column in the table - note, column
numbering starts at 1, NOT 0text
- - what text do we expect to be in the table cellpublic void value(String expectedValue)
expectedValue
- the expected input value of the elementpublic void selectedOption(String expectedText)
expectedText
- the expected input text of the elementpublic void selectedValue(String expectedValue)
expectedValue
- the expected input value of the elementpublic void selectOptions(String... expectedOptions)
expectedOptions
- the expected input value of the elementpublic void selectValues(String... expectedValues)
expectedValues
- the expected input value of the elementCopyright © 2017. All rights reserved.