

It’s best to store the file in the same location as your script. Now enter this data into the main field on this page:Ĭlick download and save the CRX file.


To do this, first get your webstore URL or the extension ID from the Google Web Store: Luckily, it only takes a few steps for you to get started: 1. To successfully test your Chrome extension with Selenium, you need to configure the scope correctly. How to Test Your Chrome Extension with Selenium in 6 Steps I discovered that within just six steps, you can interact with an extension just like a normal HTML webpage - meaning you can automatically test your Chrome Extensions and move one step closer to flawless CI and CD processes. I found a very easy workaround to this problem when I was set the task of testing BlazeMeter’s Chrome Extension. However, if you want to use Selenium on a browser extension, you need to first figure out where the extension's pages are located and then how to switch to their scope in the webUI to interact with them as DOM elements. You can do this very easily on a website page or application by using Selenium to simulate user interaction. Let’s say you want to run client side testing. As the extension is out of scope, you can’t simulate user clicks, inspect elements, or run other such activities. Why Is It Challenging to Test Browser Extensions?īrowser extensions are embedded add-ons rather than regular HTML files. How to Test Your Chrome Extension with Selenium in 6 Steps.The Challenges of Testing Browser Extensions.In this article, I’m specifically showing you how to test a Chrome Extension with Selenium, but the same principle can be applied to Firefox, Internet Explorer, and Safari.
