ios - Xcode UI Testing Failure - Computed invalid hit point -
my xcode ui testcode failing error, when test runs on ipad pro 12.9 inch. iphone model , ipad retina, there no error seen.
assertion failure: easytvuitests.m:81: ui testing failure - computed invalid hit point (-1.0, -1.3) cell 0x600000377dc0: traits: 8589934592, {{411.0, -1373.0}, {813.3, 106.3}}
the failing test code line one:
[[app.tables[@"programs"].cells elementboundbyindex:17] tap];
what error mean, , how debug it?
here full run error:
tap cell
wait app idle find cell snapshot accessibility hierarchy com.[hidden] find: descendants matching type table find: elements matching predicate '"programs" in identifiers' find: descendants matching type cell find: element @ index 17 wait app idle synthesise event assertion failure: easytvuitests.m:81: ui testing failure - computed invalid hit point (-1.0, -1.3) cell 0x600000377dc0: traits: 8589934592, {{411.0, -1373.0}, {813.3, 106.3}}
that index 17 not important - trying pick random cell. tried index, did not make difference.
visually ipad pro version not "wrong" or different ipad retina version.
this xcode 8.1 , ipad simulator runs ios 10.1.
the error message means trying execute tap @ coordinate not valid. in case, (-1.0, -1.3), left , above top left corner of screen.
the position of cell trying hit appears valid - x coordinate positive , it's y coordinate negative, indicating cell want above screen in vertically scrollable view. if case , can verify 17th cell can tapped manually, think should file bug apple @ bugreport.apple.com.
Comments
Post a Comment