Selenium is an open-source automated testing framework widely used for web application testing. It supports most web browsers and can…