← Back to team overview

sikuli-driver team mailing list archive

[Question #280571]: Convert a Region to a java byte array.

 

New question #280571 on Sikuli:
https://answers.launchpad.net/sikuli/+question/280571

I'm building a web browser test framework and will be using Allure for reporting test results.  In my Java framework a have a Region object that represents the browser (App.focusedWindow()).  During a test if a Region.wait(...) fails I want to take “take a snapshot” of the browser for the failure report.  Allure wants these snapshots as Java byte arrays.  How can I do this?  Must I save the browser Region to a file then read it back or is there a better way?

Thanks,
Spence

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.