class sap.ui.test.matchers.Descendant

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

Checks if a control has a given descendant.

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

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


Constructor

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

The descendant control to check. If undefined, it validates every control to true. Can be a control or a control ID

bDirect? boolean

specifies if the descendant should be a direct child