You can add new features to Chrome by installing extensions and you can also build your own extension.
A quick look through the Chrome Web Store shows us that you can find an extension for almost anything.
If you want to create automated tests for that extension, you can easily do it with Selenium and I'm going to show you how.
I'll also be making some comparisons between Selenium and Endtest:
This means that we need a sneaky way to access that extension like we would access a web page.
The first step is to install the Chrome Extension Source Viewer from the Google Web Store.
After you install it, go to the URL for your Chrome extension from the Chrome Web Store and you'll notice that the CRX extension icon in the top right corner takes on a yellow color.
Note: the CRX might also be a local file which hasn’t been uploaded to the Chrome WebStore. In this case, you’ll need to manually install it by dragging the CRX file into Chrome://extensions page and clicking Add.
Now we need to identify the page that we want to test. We can access that page by providing the URL for it, which is made up of the extension ID and the name of the page.
In our case, the URL for that page is going to be:
This means that we can Inspect the elements and get the relevant locators for them.
You're going to need to load that ZIP file when starting the chromedriver, with the add_extension method.
Please note that the extension loads with the default page of the extension, so you only need to add the driver.get(url) step if you want to start your test from a different extension page.
And if you're too lazy to write that code, you can just use Endtest: