Skip to content

[pull] master from apify:master#212

Merged
pull[bot] merged 1 commit into
threatcode:masterfrom
apify:master
Jun 5, 2026
Merged

[pull] master from apify:master#212
pull[bot] merged 1 commit into
threatcode:masterfrom
apify:master

Conversation

@pull

@pull pull Bot commented Jun 5, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…rkup (#3717)

## What

`handleCloudflareChallenge` stopped detecting the Cloudflare challenge.
Cloudflare inserted a `.footer-wrapper` element between `.footer-inner`
and `.diagnostic-wrapper` on the challenge page, which broke the
direct-child detection selector — so the helper returned immediately and
the request handler ran against an unsolved "Just a moment..." page
(exactly the report in #3629).

- Detection now matches by **descendants** (`.footer .footer-inner
.diagnostic-wrapper .ray-id`) so intervening wrappers don't break it.
- The click position now targets the **actual challenge widget** (the
box holding the Turnstile checkbox input), falling back to the old
`.main-content div` for older layouts.

## e2e alignment

The `camoufox-cloudflare` e2e was also a false green: its own
`isBlocked` check used the same broken selector, so the assertion always
passed. Fixed that selector, and aligned the browser stack —
`camoufox-js@^0.11.0` installs the Camoufox **150** (Firefox 150) build,
so the actor now uses **Playwright 1.60** (also Firefox 150). A
mismatched Firefox crashes playwright-core on Cloudflare's uncaught page
errors (`pageError.location` is undefined), so the versions must line
up.

Depends on camoufox-js ≥ 0.11.0 (apify/camoufox-js#283).

Closes #3629
@pull pull Bot locked and limited conversation to collaborators Jun 5, 2026
@pull pull Bot added the ⤵️ pull label Jun 5, 2026
@pull pull Bot merged commit 5baa8bd into threatcode:master Jun 5, 2026
5 of 6 checks passed
@pull pull Bot had a problem deploying to github-pages June 5, 2026 16:19 Failure
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant