|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.it.ResponseXPath
public class ResponseXPath
Lets you call the WebTester XPath functions without throwing assertion failed errors.
Constructor Summary | |
---|---|
ResponseXPath()
|
Method Summary | |
---|---|
static String |
getElementAttributeValue(net.sourceforge.jwebunit.junit.WebTester webTester,
String elementXPath,
String attribute)
Returns the value of an attribute on an element in the current response stored in the WebTester. |
static String |
getElementText(net.sourceforge.jwebunit.junit.WebTester webTester,
String elementXPath)
Returns the inner text of an element in the current response stored in the WebTester. |
static boolean |
hasElement(net.sourceforge.jwebunit.junit.WebTester webTester,
String elementXPath)
Returns true if an element in the current response stored in the WebTester matches the given xpath, otherwise returns false. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResponseXPath()
Method Detail |
---|
public static String getElementAttributeValue(net.sourceforge.jwebunit.junit.WebTester webTester, String elementXPath, String attribute)
WebTester.getElementAttributByXPath(String, String)
.
webTester
- the web tester to call WebTester.getElementAttributByXPath(String, String)
on,
which must not be nullelementXPath
- the xpath of the element to findattribute
- the name of the attribute whose value will be returned
public static String getElementText(net.sourceforge.jwebunit.junit.WebTester webTester, String elementXPath)
WebTester.getElementTextByXPath(String)
.
webTester
- the web tester to call WebTester.getElementTextByXPath(String)
on,
which must not be nullelementXPath
- the xpath of the element to find
public static boolean hasElement(net.sourceforge.jwebunit.junit.WebTester webTester, String elementXPath)
WebTester.assertElementPresentByXPath(String)
.
webTester
- the web tester to call WebTester.getElementTextByXPath(String)
on,
which must not be nullelementXPath
- the xpath of the element to find
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |