Codeception / Codeception/module-webdriver

Shortcut findElements() mechanism for data attributes

未关闭
#39 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
39
派生
25
PR 合并指标
30 天内没有已合并 PR

描述

### What are you trying to achieve? (Expected behavior)
A shortcut match() selector for data attributes.

### What do you get instead? (Actual behavior)
Need to specify the whole css selector

### How could the issue be reproduced? (Steps to reproduce)

Using the example in https://medium.com/swlh/5-tricks-to-elevate-your-automated-regression-tests-762f437c55e6
```
Shop ankle boots
```
it could be along the lines of:
```php
$i->click(['data' => 'qaid|shop-ankle-boots'])
```
while today it is:
```php
$i->click(['css' => '[data-qaid="shop-ankle-boots"]']);
```

### Details

* Codeception version: 3.1.1

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。