Inserting text into UITextField on tvOS in a Xcode Cloud UI-Test

52 views Asked by At

I am running a UI-Test on Xcode Cloud for a tvOS application (Apple TV), and part of the test includes a text insertion. Since Xcode Cloud automatically provides me with screenshots for every user interaction I can observe that nothing is inserted into the UITextField and this is my issue. The functions that I use are:

// repeated for completing a string sequence
XCUIRemote.shared.press(.right) // left, up and down 
..
..
XCUIRemote.shared.press(.select)

The screenshots capture focus movement between keys on the keyboard but executing the select action does not seem to work. This UI-test works locally on Xcode on my Macbook but this does not work in Xcode Cloud.

0

There are 0 answers