Below are few differences between Selenium and HP UFT
Selenium is an open-source tool whereas UFT is not. Selenium does not require any license to use it however UFT does need it.
UFT supports only VB Scripting whereas Selenium scripting can be done using JAVA, Perl, .net, PHP, etc.
Using UFT we can test web-based, windows based, and mainframe applications. But Selenium is used to test only web applications.
Testing through UFT is very expensive than testing with Selenium.
UFT scripts are more user-friendly than Selenium Scripts.