Skip to content

fix: ChelmsfordCityCouncil - dismiss email-signup modal blocking form#1973

Closed
InertiaUK wants to merge 1 commit into
robbrad:masterfrom
InertiaUK:fix/chelmsford-dismiss-email-popup
Closed

fix: ChelmsfordCityCouncil - dismiss email-signup modal blocking form#1973
InertiaUK wants to merge 1 commit into
robbrad:masterfrom
InertiaUK:fix/chelmsford-dismiss-email-popup

Conversation

@InertiaUK
Copy link
Copy Markdown
Contributor

Problem

www.chelmsford.gov.uk/bins-and-recycling/check-your-collection-day/ now renders a "Sign up to City News" modal dialog (Website popup 3) on page load. It overlays the postcode search form, so after the cookie-accept step the scraper's postcode_input.send_keys(postcode) raises:

```
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
```

The existing cookie-accept click doesn't close this modal.

Fix

Close the modal via its Close button before interacting with the form. Scope the XPath to //dialog//button so we don't accidentally click the site's unrelated "Close success" banner button, and match on either aria-label=\"Close\" or visible text Close.

Also add JS fallbacks for the postcode input and Search button in case any other overlay intercepts a native click — minor hardening only.

Verification

Fixture postcode CM3 7AE + full-address paon (per wiki_note, 1 Celeborn Street, South Woodham Ferrers, Chelmsford, CM3 7AE) returns the expected Tuesday B calendar (multiple upcoming collections for food waste / brown bin / plastics / etc).

chelmsford.gov.uk now renders a 'Sign up to City News' modal dialog on
the check-your-collection-day page that overlays the postcode search
form. The existing cookie-accept step doesn't close it, so when the
scraper tries to send_keys into the postcode input it raises
ElementNotInteractableException.

Close the modal via its Close button (role-qualified XPath so we don't
hit the success-banner close button), and guard the postcode input /
search click with JS fallbacks in case any other overlay intercepts
the native click.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 20, 2026

Warning

Rate limit exceeded

@InertiaUK has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 58 minutes and 57 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 58 minutes and 57 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fa07f668-0d34-47f5-8e06-68eb1eb2f2eb

📥 Commits

Reviewing files that changed from the base of the PR and between 60bd3cc and 1732272.

📒 Files selected for processing (1)
  • uk_bin_collection/uk_bin_collection/councils/ChelmsfordCityCouncil.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@robbrad robbrad mentioned this pull request May 1, 2026
@robbrad
Copy link
Copy Markdown
Owner

robbrad commented May 1, 2026

Included in May 2026 Release PR #1992. Closing.

@robbrad robbrad closed this May 1, 2026
pull Bot pushed a commit to mrw298/UKBinCollectionData that referenced this pull request May 1, 2026
@robbrad robbrad mentioned this pull request May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants