How do you automate mainframe application using Selenium?

I want to automate mainframe application using Selenium. Can anyone please tell me how to do it.