Step 3: Pass the path of the downloaded CRX File to the Chrome Options class. Step 2: Extract the CRX File through the link
Step 1: First, you need to install the AdBlocker extension on the Chrome browser. Steps to handle the adblocker extension are: VERSION: This is used to set the browser version.Īdblocker extension can be handled using Chrome Options and Desired Capabilities class.BROWSER_NAME: This is used to set the browser name.PLATFORM_NAME: This is used to set the Operating System platform.ACCEPT_SSL_CERTS: This will tell the browser to accept SSL Certificates.Some commonly used pre-defined capability types are: DesiredCapabilities SSLCertificate = DesiredCapabilities.chrome() tCapability(CapabilityType.ACCEPT_SSL_CERTS, true) WebDriver driver = new ChromeDriver(SSLCertificate) The below example shows how Desired Capabilities enables chrome browser to accept SSL certificates on websites. The most commonly used method of Desired Capabilities class is the setCapability method. It contains a set of key-value pairs to change individual properties of web driver such as browser name, browser platform, etc. disable-infobars: Used to prevent Chrome from displaying the notification.ĭesired capabilities class is used to modify the properties of the web driver.version : Used to print chrome browser version.make-default-browser: Used to make Chrome as default browser.disable-popup-blocking : Used to disable pop-ups displayed on Chrome browser.disable-extensions : Used to disable existing extensions on Chrome browser.headless: Used to open Chrome in headless mode.incognito: Used to open Chrome in incognito mode.start-maximized : Used to open Chrome in maximize mode.Some common used arguments used in ChromeOptions class are: ChromeOptions options = new ChromeOptions() options.addArgument("start-maximized") ChromeDriver driver = new ChromeDriver(options) The below example shows how the Chrome Options class is used to open the Chrome browser in maximized mode. Just follow the steps for manually adding Chrome extensions in Developer Mode so that you can finally make the extension work.Chrome Options class is used to control the properties of Chrome Driver and is used with combining Desired Capabilities. zip, you may need to extract it first before you can add it to Chrome. In a separate tab, right-click on the download link provided and then select “Save link as”.Right-click on the extension’s page and then on the context menu that appears, select “Get CRX of this extension”.Click the extension to go to its actual page.So what’s next? Just visit the Web Store and then look for any extension that you wish to download and save as a CRX file.
How to download CRX Chrome extension files from Web Store Just read and follow the steps below if you want to learn more. As a matter of fact, you can easily get a CRX file out of any extension that’s available on the Web Store.
So where will you get that type of file? Well, it’s easy. When manually installing extensions, you will need a CRX extension file. In a previous post, you’ve learned how to manually install Chrome extensions in “Developer Mode”.