bako/behat-selenium-animator

从 Behat Selenium 步骤生成 gif 动画

1.0.5 2016-07-04 07:42 UTC

This package is not auto-updated.

Last update: 2024-09-14 19:36:43 UTC


README

此工具生成使用 selenium 运行的 Behat 中每个步骤的 gif 动画。

安装

composer require bako/behat-selenium-animator

添加到 Behat 配置扩展:Bako\Behat\BehatSeleniumAnimatorExtension: ~

参数
- output_directory: 目录路径(默认为 "/tmp/behatseleniumanimator/")
- enabled_always: true/false(不推荐使用)

基本用法

在运行 Behat 时添加 "--animator-record" 选项

建议

请使用 web driver 突出显示您想要在动画中可见的一些元素。