定制 madbob/dusk-utils 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 native type but uses a XPath expression as target
  • assertInputValueAtXPath($expression, $value): similar to the native assertInputValue but uses a XPath expression as target
  • assertSeeAtXPath($expression, $value): similar to the native assertSee but uses a XPath expression as target
  • scrollView($selector): similar to the native scrollIntoView but scrolls the element at the end of the viewport, not the beginning
  • scrollTop(): scrolls the viewport to the top
  • scrollBottom(): scrolls the viewport to the bottom
  • mainScreenshot($filename): similar to the native screenshot but 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-11-14