I want to automate some tests for a chrome extension, but in order to do that, I have to dynamically get that extension's ID.
To get the extension's ID, I figured that I could navigate to chrome://extensions and click on the "Details" for my extension, and then get the current URL (which contains the extension's ID).
But for some reason, I am not able to interact with mostly anything in that chrome://extensions webpage. I don't even see the page source properly when calling webdriver.page_source in my code.
I tried calling webdriver.find_elements_by_class, by id, by xpath but nothing works, since my extension's name is not even in the page_source generated by selenium (however, if I interact with the browser and inspect the elements, I can see my extension's name there).
chrome.find_element_by_id("detailsButton").click() # should redirect me to my extension... but selenium can't find that button
I expected selenium to click on the "Details" button, but it cannot find that element.
What happens: https://i.stack.imgur.com/peLSz.png <- I want to find the ID of the first extension, by clicking on it.