madbob/dusk-utils
Composer 安装命令:
composer require madbob/dusk-utils
包简介
A few utilities for unit testing with Laravel Dusk.
README 文档
README
A few utilities for unit testing with Laravel Dusk.
typeAtXPath($expression, $value): similar to the nativetypebut uses a XPath expression as targetassertInputValueAtXPath($expression, $value): similar to the nativeassertInputValuebut uses a XPath expression as targetassertSeeAtXPath($expression, $value): similar to the nativeassertSeebut uses a XPath expression as targetscrollView($selector): similar to the nativescrollIntoViewbut scrolls the element at the end of the viewport, not the beginningscrollTop(): scrolls the viewport to the topscrollBottom(): scrolls the viewport to the bottommainScreenshot($filename): similar to the nativescreenshotbut scrolls the viewport to the top before taking the shot
Installation
composer require madbob/dusk-utils
Then in the boot() function of your preferred Service Provided (AppServiceProvider?) add the line
\MadBob\DuskUtils\Utils::init();
to init the extra macros.
统计信息
- 总下载量: 536
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-11-14