问题
I have Selenium WebDriver + ChromeDriver successfully loading and interacting with my Chrome extension.
My extension creates notifications, which I would like to be able to interact with from my automated tests, e.g. pressing a button on the notification. I take it this is not possible with Selenium, since notifications are not part of the DOM.
Has anybody considered how they might include interactions with notifications when it comes to automated testing of Chrome extensions?
来源:https://stackoverflow.com/questions/27530461/automated-testing-of-chrome-extension-notification