How to stop Behat tests in the middle to run element inspector?

前端 未结 2 629
伪装坚强ぢ
伪装坚强ぢ 2021-01-26 06:09

I\'m using Chrome driver and currently to pause the browser in the middle of the tests I do:

And I ...
And I wait for 3600 seconds
And I ...

gi

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-26 07:13

    Use Behat step through extension which is a module that will allow you to easily to step through a certain feature without having to add specific code for it. This is the GitHub overview:

    When debugging a particular scenario, use the --step-through flag at the CLI:

    bin/behat --step-through features/my-failing-feature
    

    After each step you will see the message

    [Paused after "" - press enter to continue]

    The Behat test suite will stay in this suspended state until a carriage return is received, to allow you to do any inspections necessary.

提交回复
热议问题