I have below .feature file which is use to capture the webpage
* def bytes = screenshot(false)
* def writeToPath = karate.write(bytes, path)
This code can work normally, it can capture and save the picture to the path. But the picture captured is a normal size same as the browser.
I want to capture the whole scrollable page area including vertically (body of the page) and horizontally (of an table element in the page) as picture below
The table's locator don't have name or any class, i use only its Relative XPath to locate it.
And I expected to capture it like this (or some other way that contains all information in the page vertically and horizontally)
I have found this one https://karatelabs.github.io/karate/karate-core/#chrome-java-api but I don't have idea how to use it with my karate code, guiding me will be very appreciated.
Or if there any better ways that is possible and compatible with any Browser You can recommend me please