// Element is strictly to the right of reference (no overlap, no tolerance) awaitexpect(content).toBeRightOf(sidebar);
Example
// Element can overlap reference by up to 10px awaitexpect(text).toBeRightOf(icon, { tolerance:10, toleranceUnit:ToleranceUnit.Pixels });
Example
// Element can overlap reference by up to 5% of reference width awaitexpect(input).toBeRightOf(label, { tolerance:5, toleranceUnit:ToleranceUnit.Percent });
Asserts that an element is positioned to the right of another element.
The element passes if its left edge is at or to the right of the right edge of the reference, within the specified tolerance.