angular / protractor

E2E test framework for Angular apps
http://www.protractortest.org
MIT License
8.75k stars 2.31k forks source link

Add capabiity to search element by image #5499

Open siteriaitaliana opened 3 years ago

siteriaitaliana commented 3 years ago

Feature Request

TODO:

andredesousa commented 3 years ago

Well, we have several options for finding elements. I think that your goal is to implement visual tests, but correct me if I'm wrong. You can get your element (by ID, class, etc.) and use a tool to compare images. I suggest protractor-image-comparison

Also, you can see my implementation of visual testing. Take a look in Advanced Angular Scaffold project.

siteriaitaliana commented 3 years ago

@andredesousa I think is a quicker and smarter way to get visual testing for free during the usual testing flow, indeed you could visual test each page/element but restrict scope each time to the only element that matters in your test flow is indeed a tedious task

Would you guys consider a PR if I decide to spend some time building it?

andredesousa commented 3 years ago

@siteriaitaliana Protractor is deprecated: https://github.com/angular/protractor/issues/5502