// Element is strictly above reference (no overlap, no tolerance) awaitexpect(header).toBeAbove(content);
Example
// Element can overlap reference by up to 10px awaitexpect(title).toBeAbove(subtitle, { tolerance:10, toleranceUnit:ToleranceUnit.Pixels });
Example
// Element can overlap reference by up to 5% of reference height awaitexpect(icon).toBeAbove(text, { tolerance:5, toleranceUnit:ToleranceUnit.Percent });
Asserts that an element is positioned above another element.
The element passes if its bottom edge is at or above the top edge of the reference, within the specified tolerance.