Discussion:
[wtr-general] Watir Ruby Screenshot show Scenario + Step
江南
2017-10-18 15:45:59 UTC
Permalink
Hi,

Is it possible to save a screenshot with the step instead the scenario
name?

@browser.screenshot.save(scenario.name ".png")


Thanks
--
--
Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

watir-***@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+***@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alan Baird
2017-10-18 16:14:07 UTC
Permalink
See this page if you are wanting to do this for Cucumber:
https://cucumber.io/docs/reference#report-attachments
Post by 江南
Hi,
Is it possible to save a screenshot with the step instead the scenario
name?
@browser.screenshot.save(scenario.name ".png")
Thanks
--
--
Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

watir-***@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+***@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
江南
2017-10-19 08:12:31 UTC
Permalink
Great thank you!
Post by Alan Baird
https://cucumber.io/docs/reference#report-attachments
Post by 江南
Hi,
Is it possible to save a screenshot with the step instead the scenario
name?
@browser.screenshot.save(scenario.name ".png")
Thanks
--
--
Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

watir-***@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+***@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...