Null Visibility in Inspector

Hi guys. I’ll try to be as explicit as possible so you can understand a little my situation…

Three partners and I have been working with Appium on iOS, and everything was working sweet until another teammate asked us for help. A test where we used clear() method in a XCUIElementTypeText was throwing a java.reflect Exception. I couldn’t find out why, everything was fine, I checked that we had the same Java Version, the same Appium version, and I updated his appium-xcuitest-driver npm dependency… During this process, I noticed that, in one Appium Screenshot we took, the @visible property of the elements in his screenshot was null in all of them, while in my mac, or my other partners’ macs was either true or false.

We decided to just comment that clear() method since it wasn’t really neccessary but today another Mac from another teammate appeared with the same issue. The clear() method wasn’t working and I also noticed null in every element from the Appium screenshots.

I told her to update her Appium version (Mac 1.0.2 to Mac 1.2.0) and what happened next was strange. We ran the test, and… I suppose visibility of elements can now be reached since test hasn’t failed in parts where it depends on the visibility, but I haven’t been able to take an Appium screenshot because now, every now and then, and specially when we enter text into any input, Appium just freezes. It doesn’t fail the test, it keeps running, but it freezes after entering the text…sometimes even before entering it. Past 5 or 6 minutes, it continues, and at normal speed, until another part of the test where we also enter text

After this, we’ve tried uninstalling Appium and install previous versions, but at the moment, the issue is still Appium freezing when typing text and sometimes not being able to take Appium screenshots.

Our specs are:

Appium - 1.1.0-beta.4 (1.1.0-beta.4)
XCode - 8.2.1
iOS Simulator - iPhone 7 (iOS 10.2)
MacOS - Sierra 10.12.6

Some of the Appium logs thrown at the moment Appium freezes:

[iOSLog] [IOS_SYSLOG_ROW] Aug 21 14:37:44 AMAC02SP4QEG8WN XCTRunner[12277]: Failed to fetch hit point for Other 0x61800016e580: traits: 8589934592, {{0.0, 667.0}, {375.0, 44.0}} - *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[iOSLog] [IOS_SYSLOG_ROW] Aug 21 14:37:44 AMAC02SP4QEG8WN XCTRunner[12277]: Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTestManagerErrorDomain Code=13 “Error copying attributes -25202” UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[iOSLog] [IOS_SYSLOG_ROW] Aug 21 14:37:44 AMAC02SP4QEG8WN XCTRunner[12277]: Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTestManagerErrorDomain Code=13 “Error copying attributes -25202” UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[iOSLog] [IOS_SYSLOG_ROW] Aug 21 14:38:00 AMAC02SP4QEG8WN XCTRunner[12277]: Failed to fetch hit point for Other 0x61800016e940: traits: 8589934592, {{0.0, 667.0}, {375.0, 44.0}} - *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[iOSLog] [IOS_SYSLOG_ROW] Aug 21 14:38:00 AMAC02SP4QEG8WN XCTRunner[12277]: Failed to fetch hit point for Other 0x61800016e940: traits: 8589934592, {{0.0, 667.0}, {375.0, 44.0}} - *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
[iOSLog] [IOS_SYSLOG_ROW] Aug 21 14:38:00 AMAC02SP4QEG8WN XCTRunner[12277]: Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTestManagerErrorDomain Code=13 “Error copying attributes -25202” UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1
[iOSLog] [IOS_SYSLOG_ROW] Aug 21 14:38:00 AMAC02SP4QEG8WN XCTRunner[12277]: Enqueue Failure: UI Testing Failure - Failure fetching attributes for element Device element: Error Domain=XCTestManagerErrorDomain Code=13 “Error copying attributes -25202” UserInfo={NSLocalizedDescription=Error copying attributes -25202} 0 1

I hope you guys can help me, 'cause I’ve found similar problems, but none exactly the same, and any of their solutions have worked for me…

EDIT: I’ve been testing different things, nothing worked but I also noticed that some logs before the ones I’ve already posted say:

This child can’t be serialized correctly

Don’t know if you guys may have faced a similar problem…