dequelabs / Deque-University-for-Android

All you need to improve the Accessibility of your Android Applications in one place! Build the application to see Accessible Examples, check out Attest for debugging tools, or post an Issue to leverage our community of Android Accessibility experts.
https://www.deque.com/
Other
27 stars 9 forks source link

Fetching the wrong screenshot. #35

Closed chriscm2006 closed 5 years ago

chriscm2006 commented 5 years ago

The issue is that as a part of the automated journey to uncover accessibility violations; we call the attest api for each pages in the journey. After the api call we are accessing /api/results to get the json response to create html report associated with the page. At the same time we are accessing /api/screenshot.html to map to the html report created from the json. So for the journey of four pages we get the same screenshot which is for the first page of the journey. I hope you understood the issue; happy to call and explain.

chriscm2006 commented 5 years ago

@dequelabs/help-desk

This sounds like an ordering issue.

/api/screenshot.html

Will return the last location that was analyzed.

/api/results

Will perform an analysis.

If you want the screenshot of the analyzed content you need to perform an analysis and then fetch the screenshot.

chriscm2006 commented 5 years ago

@nmashni Let me know if this resolves the clients issues in this case and I will close.

chriscm2006 commented 5 years ago

Closing as incomplete. Will reopen if we get more information.