Instance Property

screenPoint

The dynamically computed value of the coordinate’s location on screen.

Declaration

var screenPoint: CGPoint { get }

Discussion

Note that this value is dependent on the current frame of the referenced element. If the element’s frame changes, so will the value returned by this property. If the referenced element does not exist when this property is called, a test failure will be triggered. Check the referenced element’s exists property if the element may not be present.

See Also

Coordinate Properties

var referencedElement: XCUIElement

The element that the coordinate is based on, either directly or through the coordinate from which it was derived.