Package com.atlassian.confluence.it
Class ResponseXPath
- java.lang.Object
-
- com.atlassian.confluence.it.ResponseXPath
-
@Deprecated public class ResponseXPath extends Object
Deprecated.Please use confluence-test-utils module instead. See {com.atlassian.confluence.test.jwebunit.usermanagement.ResponseXPath} alternativeLets you call the WebTester XPath functions without throwing assertion failed errors.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getElementAttributeValue(String attribute)
Deprecated.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()
Deprecated.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()
Deprecated.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)
Deprecated.static ResponseXPath
responseXPath(net.sourceforge.jwebunit.junit.WebTester webTester, String elementXPath)
Deprecated.
-
-
-
Method Detail
-
getElementAttributeValue
@Deprecated public static String getElementAttributeValue(String elementXPath, String attribute)
Deprecated.
-
getElementAttributeValue
@Deprecated public static String getElementAttributeValue(String elementXPath, String attribute, net.sourceforge.jwebunit.junit.WebTester webTester)
Deprecated.
-
getElementText
@Deprecated public static String getElementText(String elementXPath)
Deprecated.
-
getElementText
@Deprecated public static String getElementText(String elementXPath, net.sourceforge.jwebunit.junit.WebTester webTester)
Deprecated.
-
hasElement
@Deprecated public static boolean hasElement(String elementXPath)
Deprecated.
-
hasElement
@Deprecated public static boolean hasElement(String elementXPath, net.sourceforge.jwebunit.junit.WebTester webTester)
Deprecated.
-
responseXPath
public static ResponseXPath responseXPath(String elementXPath)
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
public String 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
public String getElementAttributeValue(String attribute)
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
-
-