HuddleEng / PhantomCSS

Visual/CSS regression testing with PhantomJS
MIT License
4.72k stars 259 forks source link

Count instances of a screenshot appearing on a page #136

Closed brendonnelson closed 9 years ago

brendonnelson commented 9 years ago

Is it possible in PhantomCSS to take a screenshot of a WebElement, then go through a web page and count the number of times that screenshot is found on the page? For instance, taking a screenshot of a check box or a form field, then going through a page and counting the instances of that check box or form field on that page.

jamescryer commented 9 years ago

You can count the number of elements using CasperJS. You don't need to screenshot the elements, or count the screenshots.