Is there any way to capture screenshot at any time and get it displayed in Serenity Report?

39 views
Skip to first unread message

Rong Yao

unread,
Nov 15, 2016, 11:32:28 PM11/15/16
to Serenity BDD Users Group
Hi there,

Sometimes I have to take screenshot in the middle of Serenity Step, e.g. before clicking Submit button and after. Is there any way to capture screenshot at any time and get it displayed in Serenity Report?

Appreciated.

Rong Yao
Regards

adi....@outlook.com

unread,
Nov 16, 2016, 1:50:12 AM11/16/16
to Serenity BDD Users Group
You could define a take screenshot step if you want to use it for debug and it will automatically be added in the report

Harry King

unread,
Nov 16, 2016, 4:13:50 AM11/16/16
to Serenity BDD Users Group
Serenity.takeScreenshot() works a treat!  I use it before I submit a form.
Reply all
Reply to author
Forward
0 new messages