`selectOption()` not working with Bootrap's `radio-custom` radiobuttons
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- bootstrap, php
- Domaine
- testing-qa
Piste de recherche
Commencez par les points d’entrée du module WebDriver nommés dans le rapport : selectOption() et click(), et reproduisez l’échec avec le bouton radio custom-control-input de Bootstrap et son label. Comparez le contournement existant pour label avec le clic intercepté sur l’input, puis vérifiez que l’option prévue est sélectionnée sans perturber les interactions ordinaires avec les boutons radio.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
I have a Bootstrap custom radio button:
<div class="custom-control custom-radio">
<input type="radio" id="form_foo_0" name="form[foo]" value="Whatever" class="custom-control-input">
<label for="form_foo_0" class="radio-custom custom-control-label required">Whatever</label>
</div>
When I do this in an acceptance test:
$I->selectOption('input[name="form[foo]"]', 'Whatever:');
or
$I->click(['css' => '#form_foo_0']);
...I'm getting:
[Facebook\WebDriver\Exception\ElementClickInterceptedException] element click intercepted:
Element <input type="radio" id="form_foo_0" name="form[foo]" value="Whatever" class="custom-control-input"> is not clickable at point (44, 1171).
Other element would receive the click:
<label for="form_foo_0" class="radio-custom custom-control-label required">...</label>
(Session info: chrome=85.0.4183.83)
The workaround I'm using now is to click the label:
$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 <label> - it's created by Symfony's Bootstrap form theme
- Langage dominant
- PHP
- Étoiles
- 39
- Forks
- 25
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Codeception/module-webdriver
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
Codeception/module-webdriver#151 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
Codeception/module-webdriver#135 ·
-
Example of `executeAsyncJs()` Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 38/100
Codeception/module-webdriver#130 ·
-
Bug: `MalformedLocatorException` thrown for `id`s that don't start with a character (HTML 5) Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
Codeception/module-webdriver#128 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 45/100
Codeception/module-webdriver#126 ·
Toutes les issues de Codeception/module-webdriver
Issues similaires
-
tooling
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
UX
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
ProfessionalWiki/NeoWiki#1525 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
bug customer-reported
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
MagnaCapax/PMSS#949 ·
-
responsive-media kses allow-list strips clipPathUnits, collapsing objectBoundingBox clip paths Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
Automattic/static-site-importer#1829 ·