Chrome extension testing

2019-02-03 12:20发布

问题:

Does anyone have experience with Chrome extension testing?

For example:

I want to create an extension that uses the popup browser action, and automate a test case that checks the behavior of the popup when clicked.[chromium issue]

Perhaps you could use selenium (it would be really great if this is possible).

回答1:

Have you considered using a general purpose GUI-testing tool? If you are looking for a free, basic solution, check out Sikuli. There is a bunch of similar tools out there.



回答2:

I've gotten some mileage using protractor to navigate to the url for the popup and running tests on it as if it were a regular page.