Codeception / Codeception/module-webdriver

`selectOption()` not working with Bootrap's `radio-custom` radiobuttons

Đang mở
#21 1 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ả

I have a [Bootstrap custom radio button](https://getbootstrap.com/docs/4.5/components/forms/#radios):
```html



Whatever

```
When I do this in an acceptance test:
```php
$I->selectOption('input[name="form[foo]"]', 'Whatever:');
```
or
```php
$I->click(['css' => '#form_foo_0']);
```
...I'm getting:
> [Facebook\WebDriver\Exception\ElementClickInterceptedException] element click intercepted:
Element \ is not clickable at point (44, 1171).
Other element would receive the click:
\...\
(Session info: chrome=85.0.4183.83)

The workaround I'm using now is to click the *label:*
```php
$I->click(['css' => 'label[for="form_foo_0"]']);
```
Due to the popularity of Bootstrap I'm wondering if an out-of-the-box solution would be better in this case.

P.S.: I don't know why I have the class `radio-custom` on the `` - it's created by [Symfony's Bootstrap form theme](https://symfony.com/doc/current/form/bootstrap4.html#custom-forms)

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.