Is it possible to "toggle software keyboard" via the code in UI test?
<p>I have UI tests which testing login functionality (and uses it to test other stuff), but sometimes when focus is changed from one field to another - the keyboard hides, and although the cursor is blinking in the field, I getting error on <code>field.typeText</code> - <code>no focused fields to fill</code>.</p>

<p>Somehow I realized, that clicking on a <code>Hardware -&gt; Keyboard -&gt; toggle software keyboard</code> makes keyboard to persist on the screen, so test is works well. But I need to make it working on any testing device, on any developer machine, so I want to set this option programmatically without annoying "if test fails, go to … and set … by hand" in readme of the project.</p>

<p>Is it possible?</p>