I am trying to open this url and take the screenshot of the Keep browsing button which looks like the below image using Ashot library. Here is my dependencies on pom.xml: And here is my code: But when i executes the code, the taken screenshot not correct. Here is my screenshot: Update: After reading this question, i added the shootingStartegy