Skip to content

Commit

Permalink
fix automatic reservations - the popup asks for the age of the user b…
Browse files Browse the repository at this point in the history
…efore showing the confirmation button
  • Loading branch information
hschaeidt committed Nov 27, 2021
1 parent f24fac4 commit 57fd583
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion content_scripts/doctolib/book.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,13 @@
// Boutons "J'accepte" dans la popup "À lire avant de prendre un rendez-vous"
let el;
while (
(el = await waitForSelector(".dl-button-check-inner:not([disabled])"))
(el = await waitForSelector(
".dl-button-check-inner:not([disabled])"
)) ||
// Bouton radio "J'ai 18 ans ou plus", dernièr élément qui nécessite un traitement spécial avant l'apparition du bouton de confirmation
(el = await waitForSelector(
".dl-appointment-rule-radio-group .dl-radio-button-label:nth-child(2) input:not(:checked)"
))
) {
el.click();
}
Expand Down

0 comments on commit 57fd583

Please sign in to comment.