Both Selenium and QTP are popular tools used for automation testing purposes. While QTP is used for automated functional testing of software applications, Selenium is used for the automated testing of web-based applications. QTP is a licensed tool and expensive, too; it comes with its own built-in repository of objects. QTP offers a higher rate of automation compared to Selenium. However, Selenium is an open-source platform and needs no licenses; users do not incur expenses for this tool. And this offers more flexibility in testing than QTP – it supports different programming languages. Selenium testing scripts can execute across different IDEs, unlike QTP.