com.atlassian.jira.functest.framework.assertions.LinkAssertions |
![]() |
Used to make assertions about links.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Assert that a link at specified xpath is present and location contains the given url.
| |||||||||||
Assert that a link at specified xpath is present and location ends with given url.
| |||||||||||
Assert that link with given ID exists and matches exactly given text
| |||||||||||
Assert that the passed link's destination ends with a the passed value.
| |||||||||||
Assert that the passed link's destination matches the passed regex.
| |||||||||||
Assert that the passed link's destination ends with a the passed value.
| |||||||||||
Assert that the passed link's destination ends with the passed value.
| |||||||||||
Assert that a link containing the specified text is not present within the region located by regionId.
| |||||||||||
Assert that a link with the specified text is not present within the region of the given locator.
| |||||||||||
Assert that a link with the specified text is present within the region of the given locator.
| |||||||||||
Assert that a link with the specified text is present within the region located by regionId.
| |||||||||||
Assert that the page contains a link with exact text and a URL ending with the provided expecedUrlSuffix.
|
Assert that a link at specified xpath is present and location contains the given url.
xpath | the XPath query to specify the anchor element. The xpath expression should end with an A element |
---|---|
containsUrl | the expected url to be contained in the link's destination. |
Assert that a link at specified xpath is present and location ends with given url.
Note: consider using assertLinkAtNodeContains(String, String)
instead as it is less sensitive to breakages
caused by the addition of parameters such as XSRF token.
xpath | the XPath query to specify the anchor element. The xpath expression should end with an A element |
---|---|
endsWith | the expected end of the link's destination. |
Assert that link with given ID exists and matches exactly given text
linkId | ID of the link |
---|---|
linkText | the text of the link to test. |
Assert that the passed link's destination ends with a the passed value.
linkId | the id to the link to check. |
---|---|
endsWith | the expected end of the link's destination. |
Assert that the passed link's destination matches the passed regex.
linkId | the id to the link to check. |
---|---|
regex | the regular expression to use in the test. |
Assert that the passed link's destination ends with a the passed value.
linkText | the text of the link to test. |
---|---|
endsWith | the expected end of the link's destination. |
Assert that the passed link's destination ends with the passed value.
link | the link to test. |
---|---|
endsWith | the expected end of the link's destination. |
Assert that a link containing the specified text is not present within the region located by regionId.
regionId | the ID of the page section that should not contain the A element being searched for. |
---|---|
text | the text within the link. |
Assert that a link with the specified text is not present within the region of the given locator.
xpath | the XPath query to narrow down the search. Should not contain the A element being searched for. |
---|---|
text | the text within the link. |
Assert that a link with the specified text is present within the region of the given locator.
xpath | the XPath query to narrow down the search. Should not contain the A element being searched for. |
---|---|
text | the exact text within the link. |
Assert that a link with the specified text is present within the region located by regionId.
regionId | the ID of the page section that should contain the A element being searched for. |
---|---|
text | the exact text within the link. |
Assert that the page contains a link with exact text and a URL ending with the provided expecedUrlSuffix.
expectedExactText | expected exact text of the link |
---|---|
expectedUrlSuffix | expected URL suffix of the link |