The first element as a Locator.
The reference element as a Locator relative to which spacing is measured.
Expected gap between the two elements, in pixels (≥ 0).
The axis along which to measure spacing.
Optional spacing options.
A Promise that resolves with the matcher result.
Asserts that the spacing between two elements matches the expected value along the specified axis.
The spacing is calculated as the gap between the edges of the two elements:
Elements are automatically ordered by position (left → right or top → bottom), regardless of parameter order.
SpacingAxis.Horizontal):SpacingAxis.Vertical):