You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you need to provide more info to get help.
ruby version? windows version? pretty_face gem version? etc.
You seem to be following the book. Did you add the code to the hooks file?
I do no think this is a Pretty Face issue. Are you using Time.now in the screenshot filename (in accordance with what Page 192 of the Cucumber and Cheese book suggests)? This is a problem for Windows OS's since Time.now will output like this: 2014-02-17 12:21:44 -0500. The problem is the colon :. This is an invalid character for filenames in Windows. Thus, that part of your code throws an error, the screenshot does not save, and any code after that erring line in your After hook will not execute (i.e. @browser.close).
As a suggestion, I use Time.now.strftime("%Y-%m-%d_%H-%M-%S") instead.
Screenshots are not created or embedded in html report on windows.
The text was updated successfully, but these errors were encountered: