Codeception / Codeception/module-webdriver

Shortcut findElements() mechanism for data attributes

Đang mở
#39 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
PHP
Star
39
Fork
25
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.