class sap.ui.test.matchers.Ancestor

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

Checks if a control has a defined ancestor.

As of version 1.72, it is available as a declarative matcher with the following syntax:

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


Constructor

new sap.ui.test.matchers.Ancestor(vAncestor, bDirect?)
Param Type Default Value Description
vAncestor object string

the ancestor control to check, if undefined, validates every control to true. Can be a control or a control ID

bDirect? boolean

specifies if the ancestor should be a direct ancestor (parent)