Package com.atlassian.confluence.it
Class ResponseXPath
java.lang.Object
com.atlassian.confluence.it.ResponseXPath
Deprecated.
Please use confluence-test-utils module instead.
See {com.atlassian.confluence.test.jwebunit.usermanagement.ResponseXPath} alternative
Lets you call the WebTester XPath functions without throwing assertion failed errors.
-
Method Summary
Modifier and TypeMethodDescriptiongetElementAttributeValue(String attribute) Deprecated.Returns the value of an attribute on an element in the current response stored in the WebTester.static StringgetElementAttributeValue(String elementXPath, String attribute) Deprecated.static StringgetElementAttributeValue(String elementXPath, String attribute, net.sourceforge.jwebunit.junit.WebTester webTester) Deprecated.Deprecated.Returns the inner text of an element in the current response stored in the WebTester.static StringgetElementText(String elementXPath) Deprecated.static StringgetElementText(String elementXPath, net.sourceforge.jwebunit.junit.WebTester webTester) Deprecated.booleanDeprecated.Returns true if an element in the current response stored in the WebTester matches the given xpath, otherwise returns false.static booleanhasElement(String elementXPath) Deprecated.static booleanhasElement(String elementXPath, net.sourceforge.jwebunit.junit.WebTester webTester) Deprecated.static ResponseXPathresponseXPath(String elementXPath) Deprecated.static ResponseXPathresponseXPath(net.sourceforge.jwebunit.junit.WebTester webTester, String elementXPath) Deprecated.
-
Method Details
-
getElementAttributeValue
Deprecated. -
getElementAttributeValue
@Deprecated public static String getElementAttributeValue(String elementXPath, String attribute, net.sourceforge.jwebunit.junit.WebTester webTester) Deprecated. -
getElementText
Deprecated. -
getElementText
@Deprecated public static String getElementText(String elementXPath, net.sourceforge.jwebunit.junit.WebTester webTester) Deprecated. -
hasElement
Deprecated. -
hasElement
@Deprecated public static boolean hasElement(String elementXPath, net.sourceforge.jwebunit.junit.WebTester webTester) Deprecated. -
responseXPath
Deprecated. -
responseXPath
public static ResponseXPath responseXPath(net.sourceforge.jwebunit.junit.WebTester webTester, String elementXPath) Deprecated. -
hasElement
public boolean hasElement()Deprecated.Returns true if an element in the current response stored in the WebTester matches the given xpath, otherwise returns false.- Returns:
- true if an element with the given xpath exists, otherwise false
-
getElementText
Deprecated.Returns the inner text of an element in the current response stored in the WebTester. The element used is the first element specified by executing the xpath expression against the response document. Returns null if either the element does not exist.- Returns:
- the text inside the first element specified by the xpath expression
-
getElementAttributeValue
Deprecated.Returns the value of an attribute on an element in the current response stored in the WebTester. The element used is the first element specified by executing the xpath expression against the response document. Returns null if either the element or attribute does not exist.- Parameters:
attribute- the name of the attribute whose value will be returned- Returns:
- the value of the given attribute on the first element specified by the xpath expression
-