is it feasible to test mainframe, which is a desktop based application with selenium? If yes, then how?

3 Answers 3


Selenium allows to test any UI that can provide WebDriver implementation to interact with it.

If UI framework that runs your app provides a webdriver that can:

  • associate the commands WebDriver implementations should implement with the particular actions on UI
  • associate the way how the locators are built with the particular UI objects

then you can utilize that driver for your UI automation.

  • Indeed, would be nice to have a webdriver implementation to support it. But it would likely be limited in API coverage, such as open up terminal/command, SendKeys, and switch to window commands for the most part.
    – David
    Jun 2, 2021 at 19:45

Selenium is browser automation tool.

It is commonly used to website test automation, but it is not limited to it.

Mainframe/desktop do not have HTML locators, which webdriver uses to locate webelements to be interacted with, AFAIK.


To be practical... you can perform automation to some extent. but not recommended. You might consider winium which implements the JSON wire protocol to automate windows based application(with limited achievability). I would suggest consider UFT with terminal emulator addin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.