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
}
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) |