Xcode UI Testing Failure - calculated invalid hit point

In the My Xcode UI test code, this error occurs when the test runs on a 12.9-inch iPad Pro. There is no error for all iPhone and iPad Retina models.

Confirmation error: EasyTVUITests.m: 81: UI testing error - invalid hit point (-1.0, -1.3) is calculated for cell 0x600000377dc0: traits: 8589934592, {{411.0, -1373.0}, {813.3, 106.3}}

Invalid verification code line:

[[app.tables[@"programs"].cells elementBoundByIndex:17] tap];

What does the error actually mean and how to debug it?

Here is the full mileage before the error:

Tap cell

Wait for app to idle

Find the Cell

   Snapshot accessibility hierarchy for com.[hidden]

   Find: Descendants matching type Table

   Find: Elements matching predicate '"programs" IN identifiers'

   Find: Descendants matching type Cell

   Find: Element at index 17

   Wait for app to idle

Synthesise event

   Assertion Failure: EasyTVUITests.m:81: UI Testing Failure - Computed invalid hit point (-1.0, -1.3) for Cell 0x600000377dc0: traits: 8589934592, {{411.0, -1373.0}, {813.3, 106.3}}

That index 17 is not important - I'm just trying to select a random cell. I tried a different index, but that didn't make any difference.

Visually, the iPad Pro version does not look β€œwrong” or differs from the iPad retina version.

Xcode 8.1, iPad iOS 10.1.

+4
3

, . (-1.0, -1.3), .

, , - x , y , , , , . , , 17- , , Apple bugreport.apple.com.

+2

iPad Pro (12,9 ), iPad Retina.

XCUIElement isHittable - ? - iPad Pro (12,9 ) YES, NO.

, . , .

+2

- , , , .

iPad Retina iPad Pro 9.7 , , http://samwize.com/2016/02/28/everything-about-xcode-ui-testing-snapshot/ p >

iPad Pro 12.9inch, isHittable .

, , , popover, , hittable, xcuitests , . forceTap, popover , . iPad.

+2

Source: https://habr.com/ru/post/1660614/


All Articles