What is Selenium?Selenium is a tool that provides a set of libraries and APIs that can be used to automate Web browsers, primarily for…