Extension of #1362 .
Currently device.takeScreenshot does not return the path to the image.
device.takeScreenshot
device.takeScreenshot returns path to the screenshot so we could reach screenshot inside the test and do additional things with it.
Solved :)
Most helpful comment
Solved :)