Search code examples
javaseleniumawtrobot

Interact with a windows-based (GUI) application via Java code?


Background:

We have been working on automation-based testing in our application. And we are using Selenium for testing web-based applications.

Question:

Now, we have a requirement "on click of a button" it opens "PuTTY.exe".

To complete our end-to-end testing, we have to enter a username and password in an opened window. And make sure we are able to connect to the host.

Is there a way we can interact with the other application (other than the browser)?


Solution

  • Use AutoIt to handle desktop-based windows using Java and Selenium.

    Also see the AutoIt documentation page.