Chrome extension testing

戏子无情 提交于 2019-11-29 02:59:19

问题


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.



来源:https://stackoverflow.com/questions/6324051/chrome-extension-testing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!