Open thasherwin opened 7 years ago
Thanks for great Idea @thasherwin. I going to create it. I will appreciate if someone wants to participate and drop some examples here.
Maybe we can start by adding more stuff on the wiki? Like for example what each methods mainly do? I will gladly help on the example project if I can refer to something when I don't understand what does what. :)
Also, some of the codes on the main page might be obsolete.
Example:
new AShot()
.withCropper(new IndentCropper() // set custom cropper with indentation
.addIndentFilter(blur())) // add filter for indented areas
.takeScreenshot(driver, yandexWeatherElement);
What currently works for me:
new AShot().imageCropper(new IndentCropper().addIndentFilter(new BlurFilter()))
.takeScreenshot(driver, yandexWeatherElement);
which might gives different results...
@gavrilfb Thanks for your input. By the way feel free to send any pull requests with documentation improvements. I'm going to find a time and create an example project using different browsers, test cases, element types and Allure2 as reporter. Hopefully it will be ready on the next week. Perhaps later :(
Regarding the blur()
- it is a static method import. For sure it would be optimal to use explicit constructor call on README page.
It would be helpful if the examples showed the usage of the ImageMarkupPolicy
and PointsMarkupPolicy
, I cannot seem to get different behavior with these on the marked image as both appear to color the difference. The code has no comments, and most of the logic seems to be around complex equals/hashCode calculations (point sets vs. area(?)).
I was trying to see if I could get a bounding box drawn around regions/clusters of differences. To more easily draw the eye than just colored pixels.
The ImageDiffer
possibilities in https://github.com/yandex-qatools/ashot#screenshot-comparison aren't covered. Nor is an example of a difference shown like there is for the other capabilities (e.g. blurring, cropping).
Great tool so far, was fairly easy to get the basics working! 👍
This is more like question and not an issue.
I wonder whether there is any working example project on github using Ashot where everything required is already programmed.. For example: Frist run: The baseline creation of full page or elements on a page Second run: The compare
This way i don't have to build all functionalities from scratch
Hi, I hope you must have got a working solution with an example with capture and compare and other some features. You can just give a look if you want.
Please go through below working example with Image Comparison. https://github.com/srinu-kodi/OneFramework/tree/master/src/main/java/org/oneframework/imageCompare
Please be advised that I am adding facility of blur or mask image with specific areas.
This is more like question and not an issue.
I wonder whether there is any working example project on github using Ashot where everything required is already programmed.. For example: Frist run: The baseline creation of full page or elements on a page Second run: The compare
This way i don't have to build all functionalities from scratch