public class Assert extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
CLASS |
protected static String |
CLASSVALUE |
protected Element |
element |
protected static String |
EXPECTED |
protected OutputFile |
file |
protected static String |
HASNTTEXT |
protected static String |
HASNTVALUE |
protected static String |
HASTEXT |
protected static String |
HASVALUE |
protected static String |
NOTINPUT |
protected static String |
NOTSELECT |
protected static String |
NOTTABLE |
protected static String |
ONLYVALUE |
protected static String |
TEXT |
protected static String |
VALUE |
Constructor and Description |
---|
Assert() |
Modifier and Type | Method and Description |
---|---|
protected String[] |
getAttributes(String attribute,
String expected)
Retrieves all attributes of an element, and writes out the expected
result of checking for one particular attribute.
|
protected String |
getValue(String value,
String expected)
Retrieves the value from the element, and writes out the value that is
being expected.
|
protected boolean |
isPresent()
Determines if the element is present, and if it is not, waits up to the
default time (5 seconds) for the element
|
protected boolean |
isPresentSelect(String expected)
Determines if the element is a present, and if it is, it is a select
|
protected boolean |
isPresentTable(String expected)
Determines if the element is a present, and if it is, it is a table
|
protected boolean |
isSelect()
Determines if the element is a select element
|
protected boolean |
isTable()
Determines if the element is a table element
|
protected OutputFile file
protected Element element
protected static final String EXPECTED
protected static final String CLASS
protected static final String NOTINPUT
protected static final String VALUE
protected static final String TEXT
protected static final String HASVALUE
protected static final String HASNTVALUE
protected static final String HASTEXT
protected static final String HASNTTEXT
protected static final String ONLYVALUE
protected static final String CLASSVALUE
protected static final String NOTSELECT
protected static final String NOTTABLE
protected boolean isPresent()
protected boolean isSelect()
protected boolean isTable()
protected boolean isPresentSelect(String expected)
expected
- - the expected outcomeprotected boolean isPresentTable(String expected)
expected
- - the expected outcomeprotected String[] getAttributes(String attribute, String expected)
attribute
- - the attribute to check forexpected
- - is the attribute expected to be present, or not presentprotected String getValue(String value, String expected)
value
- the expected value of the elementexpected
- - is the attribute expected to be present, or not presentCopyright © 2017. All rights reserved.