// take and store the entire screenshot using AShot
WebPageMaterializingFunctions pmf = new WebPageMaterializingFunctions(store, jobName, jobTimestamp)
pmf.setScrollTimeout(1000)
Map<String, String> attributes = ["step": String.format("%02d", index + 1)]
// save as PNG
Material png = pmf.storeEntirePageScreenshot.accept(driver, target, attributes)
assert Files.exists(png.toPath())
This section takes a full page screenshot.
Now I want
Material png = pmf.storeElementScreenshot.accept(driver, target, attributes, By.xpath("//img[@id='apple']"))
v0.10.1, com.kazurayam.inspectus.materialize.selenium.WebPageMaterializingFunctions lacks methods that deals with "Element screenshots". Let's add them.
Why I want "Element Screenshot"? --- because I am developing https://github.com/kazurayam/ks_comparingElementScreenshots_using_Inspectus
Then, tell more detail of code.
For example inspectus4katalon-sample-project MyAdmin/processTargetList has the following fragment:
This section takes a full page screenshot.
Now I want