Skip to content

Handle exceptions when capturing failing pages

Choose a tag to compare

@acoulton acoulton released this 02 Jun 08:17
· 44 commits to 1.x since this release
8ccd8fc

Catch driver-level errors when attempting to capture failing page HTML / screenshots. If the listener throws an exception, it terminates the whole behat process. This can happen if the browser has crashed / lost connection, and prevents e.g. the progress formatter from rendering the list of failed steps. Instead, print the exception details to output and move on.