class sap.ui.test.matchers.Sibling

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Extends:
Module: sap/ui/test/matchers/Sibling
Application Component: CA-UI5-TA

Checks if a control has a defined sibling. Available as a declarative matcher with the following syntax:

{
    sibling: "object" // where "object" is a declarative matcher for the sibling
}


Constructor

new sap.ui.test.matchers.Sibling(vSibling, oOptions?)
Param Type Default Value Description
vSibling object string

the sibling control to check. Can be a control or a control ID. If undefined, the result will always be true.

oOptions? object

specifies how to match

useDom boolean

whether to match by relationships of the DOM references. false by default

prev boolean

match only if control's DOM reference is before the sibling's in the DOM tree

next boolean

match only if control's DOM reference is after the sibling's in the DOM tree,

level boolean

how many levels of ancestors to search