Selenium with Javascript - Accessing different Elements We had discussed about Locators in our last session, So we know that…