mardi 25 avril 2017

iOS UI Test typeText With Custom Keyboard

I have a UIKeyInput that essentially renders LaTeX. It's paired with a custom keyboard, that can send LaTeX commands. When commands are pressed on the keyboard, they invoke the insertText method on the input. These commands are often more than one character. For example, \sigma.

When testing, I'm calling typeText('\sigma').

The issue is that it's sending the characters one-by-one, so it's not able to handle commands.

What are my best options here? If I could get access to the underlying UIView, I could just perform the insertText selector.

Aucun commentaire:

Enregistrer un commentaire