@crawlee/playwright 4.0.0-beta.127 → 4.0.0-beta.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -499,9 +499,9 @@ async function handleCloudflareChallenge(page, url, options = {}) {
499
499
  };
500
500
  options.isChallengeCallback ??= async () => {
501
501
  return await page.evaluate(async () => {
502
- // Cloudflare nests the ray ID under varying wrapper elements, so we match by descendants
503
- // instead of a direct-child chain (e.g. a `.footer-wrapper` was inserted in between).
504
- return !!document.querySelector('.footer .footer-inner .diagnostic-wrapper .ray-id');
502
+ // Cloudflare keeps reshuffling the wrapper elements between `.footer-inner` and `.ray-id`,
503
+ // so only the stable outer classes are matched.
504
+ return !!document.querySelector('.footer .footer-inner .ray-id');
505
505
  });
506
506
  };
507
507
  const retryBlocked = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/playwright",
3
- "version": "4.0.0-beta.127",
3
+ "version": "4.0.0-beta.128",
4
4
  "description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
5
5
  "engines": {
6
6
  "node": ">=22.0.0"
@@ -49,13 +49,13 @@
49
49
  "dependencies": {
50
50
  "@apify/datastructures": "^2.0.3",
51
51
  "@apify/timeout": "^0.4.4",
52
- "@crawlee/basic": "4.0.0-beta.127",
53
- "@crawlee/browser": "4.0.0-beta.127",
54
- "@crawlee/browser-pool": "4.0.0-beta.127",
55
- "@crawlee/cheerio": "4.0.0-beta.127",
56
- "@crawlee/core": "4.0.0-beta.127",
57
- "@crawlee/types": "4.0.0-beta.127",
58
- "@crawlee/utils": "4.0.0-beta.127",
52
+ "@crawlee/basic": "4.0.0-beta.128",
53
+ "@crawlee/browser": "4.0.0-beta.128",
54
+ "@crawlee/browser-pool": "4.0.0-beta.128",
55
+ "@crawlee/cheerio": "4.0.0-beta.128",
56
+ "@crawlee/core": "4.0.0-beta.128",
57
+ "@crawlee/types": "4.0.0-beta.128",
58
+ "@crawlee/utils": "4.0.0-beta.128",
59
59
  "cheerio": "^1.0.0",
60
60
  "jquery": "^3.7.1",
61
61
  "ml-logistic-regression": "^2.0.0",
@@ -84,5 +84,5 @@
84
84
  }
85
85
  }
86
86
  },
87
- "gitHead": "4aa4a4d8d105bb530649ac5cd9197a3169106bd9"
87
+ "gitHead": "2c017f04d564e8fa13855bf19f31f43cb65f4f44"
88
88
  }