Adding Browser Extentions with Selenium WebDriver
When Selenium WebDriver launch a browser , it creates a new profile or options set with browser’s default features.This launched browser does not contain addons or extentions.In everytime we need to add on , which addon or extention we want to use.
Chrome
1 | ChromeOptions chromeOptions = new ChromeOptions(); |
Firefox
1 | FirefoxProfile profile = new FirefoxProfile() ; |