|
||||||||||
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.
Method Summary | |
---|---|
String |
getElementAttributeValue(String attribute)
Returns the value of an attribute on an element in the current response stored in the WebTester. |
static String |
getElementAttributeValue(String elementXPath,
String attribute)
Deprecated. |
static String |
getElementAttributeValue(String elementXPath,
String attribute,
net.sourceforge.jwebunit.junit.WebTester webTester)
Deprecated. |
String |
getElementText()
Returns the inner text of an element in the current response stored in the WebTester. |
static String |
getElementText(String elementXPath)
Deprecated. |
static String |
getElementText(String elementXPath,
net.sourceforge.jwebunit.junit.WebTester webTester)
Deprecated. |
boolean |
hasElement()
Returns true if an element in the current response stored in the WebTester matches the given xpath, otherwise returns false. |
static boolean |
hasElement(String elementXPath)
Deprecated. |
static boolean |
hasElement(String elementXPath,
net.sourceforge.jwebunit.junit.WebTester webTester)
Deprecated. |
static ResponseXPath |
responseXPath(String elementXPath)
|
static ResponseXPath |
responseXPath(net.sourceforge.jwebunit.junit.WebTester webTester,
String elementXPath)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
@Deprecated public static String getElementAttributeValue(String elementXPath, String attribute)
@Deprecated public static String getElementAttributeValue(String elementXPath, String attribute, net.sourceforge.jwebunit.junit.WebTester webTester)
@Deprecated public static String getElementText(String elementXPath)
@Deprecated public static String getElementText(String elementXPath, net.sourceforge.jwebunit.junit.WebTester webTester)
@Deprecated public static boolean hasElement(String elementXPath)
@Deprecated public static boolean hasElement(String elementXPath, net.sourceforge.jwebunit.junit.WebTester webTester)
public static ResponseXPath responseXPath(String elementXPath)
public static ResponseXPath responseXPath(net.sourceforge.jwebunit.junit.WebTester webTester, String elementXPath)
public boolean hasElement()
public String getElementText()
public String getElementAttributeValue(String attribute)
attribute
- the name of the attribute whose value will be returned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |