Take a screenshot with Cucumber

后端 未结 6 808
伪装坚强ぢ
伪装坚强ぢ 2021-01-03 17:31

I just learn how to use cucumber. Can you tell me how to complete this code?

You can implement step definitions for undefined steps with these snippets:



        
6条回答
  •  借酒劲吻你
    2021-01-03 18:10

    If you are using watir-webdriver for your testing you can call the screenshot method on your browser object and save it. http://watirwebdriver.com/screenshots/

    If you are doing windows controls you could use the win32/screenshot gem to achieve this.https://github.com/jarmo/win32screenshot

提交回复
热议问题