SendInput to UI, run from Console

Jun 5 at 7:13 AM
Hi,

I have a untiy project, which consists of a login screen. I have written Unity Integration tests to send the user name and password using InputSimulator. This works fine, when the tests are run through unity editor.

But, when I am running this test from command line, there is no Editor that is open when the scripts are run.So, the input simulator sends the input to the window that is currently open, instead of the app

How do I send texts to the Unity gameobject?