René's URL Explorer Experiment


Title: fix(browsers): do not close a browser as inactive while a page opening is in flight by vdusek · Pull Request #2156 · apify/crawlee-python · GitHub

Open Graph Title: fix(browsers): do not close a browser as inactive while a page opening is in flight by vdusek · Pull Request #2156 · apify/crawlee-python

X Title: fix(browsers): do not close a browser as inactive while a page opening is in flight by vdusek · Pull Request #2156 · apify/crawlee-python

Description: Crawlee—A web scraping and browser automation library for Python to build reliable crawlers. Extract structured data with LLMs via Pydantic AI, or control the browser in natural language with Stagehand. Works with BeautifulSoup, Parsel, Playwright, and raw HTTP. Download HTML, PDF, images, and other files. Proxy rotation included. - fix(browsers): do not close a browser as inactive while a page opening is in flight by vdusek · Pull Request #2156 · apify/crawlee-python

Open Graph Description: The windows-latest / 3.10 unit-test job failed with TargetClosedError: BrowserContext.new_page: Target page, context or browser has been closed in test_new_page_with_each_plugin. It is not a test f...

X Description: The windows-latest / 3.10 unit-test job failed with TargetClosedError: BrowserContext.new_page: Target page, context or browser has been closed in test_new_page_with_each_plugin. It is not a test f...

Opengraph URL: https://github.com/apify/crawlee-python/pull/2156

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:37f059c8-845d-2e16-f2a6-b47d673accc1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC670:2F4BD9:C350DB:10349FB:6B00F253
html-safe-noncefbc68541d4a4c5a3826b896f63230f9a7161cf0ec64a9d96c6e7b905b3f5b41b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjcwOjJGNEJEOTpDMzUwREI6MTAzNDlGQjo2QjAwRjI1MyIsInZpc2l0b3JfaWQiOiI4NTY1NzI4NTQwMzY3MDU3NDkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf48916fd957f86ceb4904763124acd22b25c525129ed5d79d8679c357ff8cce0
hovercard-subject-tagpull_request:4278655442
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/apify/crawlee-python/2156/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c915a292c536b704a16404d6c941c07b8f302ec53c3800c30c1a70b5ad1e1929/apify/crawlee-python/pull/2156
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c915a292c536b704a16404d6c941c07b8f302ec53c3800c30c1a70b5ad1e1929/apify/crawlee-python/pull/2156
og:image:altThe windows-latest / 3.10 unit-test job failed with TargetClosedError: BrowserContext.new_page: Target page, context or browser has been closed in test_new_page_with_each_plugin. It is not a test f...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevdusek
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-cache
go-importgithub.com/apify/crawlee-python git https://github.com/apify/crawlee-python.git
octolytics-dimension-user_id24586296
octolytics-dimension-user_loginapify
octolytics-dimension-repository_id741365632
octolytics-dimension-repository_nwoapify/crawlee-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id741365632
octolytics-dimension-repository_network_root_nwoapify/crawlee-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/apify/crawlee-python/pull/2156#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapify%2Fcrawlee-python%2Fpull%2F2156
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapify%2Fcrawlee-python%2Fpull%2F2156
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=apify%2Fcrawlee-python
Reloadhttps://github.com/apify/crawlee-python/pull/2156
Reloadhttps://github.com/apify/crawlee-python/pull/2156
Reloadhttps://github.com/apify/crawlee-python/pull/2156
apifyhttps://github.com/apify
crawlee-pythonhttps://github.com/apify/crawlee-python
Codehttps://github.com/apify/crawlee-python
Issues72 (72)https://github.com/apify/crawlee-python/issues
Pull requests14 (14)https://github.com/apify/crawlee-python/pulls
Discussionshttps://github.com/apify/crawlee-python/discussions
Actionshttps://github.com/apify/crawlee-python/actions
Security and quality1 (1)https://github.com/apify/crawlee-python/security
Insightshttps://github.com/apify/crawlee-python/insights
https://github.com/apify/crawlee-python
vdusekhttps://github.com/vdusek
masterhttps://github.com/apify/crawlee-python/tree/master
fix/browser-pool-reaper-racehttps://github.com/apify/crawlee-python/tree/fix/browser-pool-reaper-race
Conversationhttps://github.com/apify/crawlee-python/pull/2156
Commits1 (1)https://github.com/apify/crawlee-python/pull/2156/commits
Checkshttps://github.com/apify/crawlee-python/pull/2156/checks
Files changedhttps://github.com/apify/crawlee-python/pull/2156/files
fix(browsers): do not close a browser as inactive while a page opening is in flighthttps://github.com/apify/crawlee-python/pull/2156#top
vdusekhttps://github.com/vdusek
masterhttps://github.com/apify/crawlee-python/tree/master
fix/browser-pool-reaper-racehttps://github.com/apify/crawlee-python/tree/fix/browser-pool-reaper-race
https://github.com/vdusek
vdusekhttps://github.com/vdusek
Aug 14, 2026https://github.com/apify/crawlee-python/pull/2156#issue-5150303600
failedhttps://github.com/apify/crawlee-python/actions/runs/31604546268/job/94140034785
#1660https://github.com/apify/crawlee-python/issues/1660
Please reload this pagehttps://github.com/apify/crawlee-python/pull/2156
https://github.com/vdusek
fix(browsers): do not close a browser as inactive while a page openin…https://github.com/apify/crawlee-python/pull/2156/commits/c5def7bf468eea4570a5e8ae0ef46f88b319d40e
c5def7bhttps://github.com/apify/crawlee-python/pull/2156/commits/c5def7bf468eea4570a5e8ae0ef46f88b319d40e
https://github.com/vdusek
vdusekhttps://github.com/vdusek
t-tooling https://github.com/apify/crawlee-python/issues?q=state%3Aopen%20label%3At-tooling
adhoc https://github.com/apify/crawlee-python/issues?q=state%3Aopen%20label%3Aadhoc
Aug 14, 2026https://github.com/apify/crawlee-python/pull/2156#event-29450296376
https://github.com/vdusek
vdusekhttps://github.com/vdusek
Aug 14, 2026https://github.com/apify/crawlee-python/pull/2156#event-29450297583
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
147th sprint - Tooling teamhttps://github.com/apify/crawlee-python/milestone/504
Aug 14, 2026https://github.com/apify/crawlee-python/pull/2156#event-29450304973
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
tested https://github.com/apify/crawlee-python/issues?q=state%3Aopen%20label%3Atested
Aug 14, 2026https://github.com/apify/crawlee-python/pull/2156#event-29450305776
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Aug 14, 2026https://github.com/apify/crawlee-python/pull/2156#issuecomment-5291834273
Codecovhttps://app.codecov.io/gh/apify/crawlee-python/pull/2156?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
091410fhttps://app.codecov.io/gh/apify/crawlee-python/commit/091410f36cec8ef795d29b6d89428069525a4dbf?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
c5def7bhttps://app.codecov.io/gh/apify/crawlee-python/commit/c5def7bf468eea4570a5e8ae0ef46f88b319d40e?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
Files with missing lineshttps://app.codecov.io/gh/apify/crawlee-python/pull/2156?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
src/crawlee/browsers/_browser_controller.pyhttps://app.codecov.io/gh/apify/crawlee-python/pull/2156?src=pr&el=tree&filepath=src%2Fcrawlee%2Fbrowsers%2F_browser_controller.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify#diff-c3JjL2NyYXdsZWUvYnJvd3NlcnMvX2Jyb3dzZXJfY29udHJvbGxlci5weQ==
1 Missing ⚠️ https://app.codecov.io/gh/apify/crawlee-python/pull/2156?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
src/crawlee/browsers/_browser_pool.pyhttps://app.codecov.io/gh/apify/crawlee-python/pull/2156?src=pr&el=tree&filepath=src%2Fcrawlee%2Fbrowsers%2F_browser_pool.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify#diff-c3JjL2NyYXdsZWUvYnJvd3NlcnMvX2Jyb3dzZXJfcG9vbC5weQ==
1 Missing ⚠️ https://app.codecov.io/gh/apify/crawlee-python/pull/2156?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
.../crawlee/browsers/_stagehand_browser_controller.pyhttps://app.codecov.io/gh/apify/crawlee-python/pull/2156?src=pr&el=tree&filepath=src%2Fcrawlee%2Fbrowsers%2F_stagehand_browser_controller.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify#diff-c3JjL2NyYXdsZWUvYnJvd3NlcnMvX3N0YWdlaGFuZF9icm93c2VyX2NvbnRyb2xsZXIucHk=
1 Missing ⚠️ https://app.codecov.io/gh/apify/crawlee-python/pull/2156?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
Flaghttps://app.codecov.io/gh/apify/crawlee-python/pull/2156/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
unithttps://app.codecov.io/gh/apify/crawlee-python/pull/2156/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
Click herehttps://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify#carryforward-flags-in-the-pull-request-comment
☔ View full report in Codecov by Harnesshttps://app.codecov.io/gh/apify/crawlee-python/pull/2156?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
Share it herehttps://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apify
Test Analyticshttps://docs.codecov.com/docs/test-analytics
JS Bundle Analysishttps://docs.codecov.com/docs/javascript-bundle-analysis
Please reload this pagehttps://github.com/apify/crawlee-python/pull/2156
https://github.com/vdusek
vdusekhttps://github.com/vdusek
Mantisushttps://github.com/Mantisus
Pijukatelhttps://github.com/Pijukatel
August 14, 2026 10:05https://github.com/apify/crawlee-python/pull/2156#event-29451663990
https://github.com/vdusek
vdusekhttps://github.com/vdusek
August 14, 2026 10:05https://github.com/apify/crawlee-python/pull/2156#event-29451671049
https://github.com/Mantisus
Mantisushttps://github.com/Mantisus
Aug 14, 2026 https://github.com/apify/crawlee-python/pull/2156#pullrequestreview-4936759079
View reviewed changes https://github.com/apify/crawlee-python/pull/2156/files/c5def7bf468eea4570a5e8ae0ef46f88b319d40e
Mantisushttps://github.com/Mantisus
https://github.com/apify/crawlee-python/pull/2156#pullrequestreview-4936759079
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/apify/crawlee-python/pull/2156
https://github.com/Pijukatel
Pijukatelhttps://github.com/Pijukatel
Aug 14, 2026 https://github.com/apify/crawlee-python/pull/2156#pullrequestreview-4938378270
View reviewed changes https://github.com/apify/crawlee-python/pull/2156/files/c5def7bf468eea4570a5e8ae0ef46f88b319d40e
https://github.com/vdusek
vdusekhttps://github.com/vdusek
3485535https://github.com/apify/crawlee-python/commit/3485535749ae5b6075e87860bc82304c483aad21
Aug 17, 2026https://github.com/apify/crawlee-python/pull/2156#event-29547833583
Please reload this pagehttps://github.com/apify/crawlee-python/pull/2156
https://github.com/vdusek
vdusekhttps://github.com/vdusek
August 17, 2026 07:11https://github.com/apify/crawlee-python/pull/2156#event-29547835015
https://github.co/hiddenchars
https://github.com/apify/crawlee-python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapify%2Fcrawlee-python%2Fpull%2F2156
https://github.com/Pijukatel
Pijukatel https://github.com/Pijukatel
https://github.com/apify/crawlee-python/pull/2156/files/c5def7bf468eea4570a5e8ae0ef46f88b319d40e
https://github.com/Mantisus
Mantisus https://github.com/Mantisus
https://github.com/apify/crawlee-python/pull/2156/files/c5def7bf468eea4570a5e8ae0ef46f88b319d40e
Please reload this pagehttps://github.com/apify/crawlee-python/pull/2156
https://github.com/vdusek
vdusek https://github.com/vdusek
adhoc https://github.com/apify/crawlee-python/issues?q=state%3Aopen%20label%3Aadhoc
t-tooling https://github.com/apify/crawlee-python/issues?q=state%3Aopen%20label%3At-tooling
tested https://github.com/apify/crawlee-python/issues?q=state%3Aopen%20label%3Atested
147th sprint - Tooling team https://github.com/apify/crawlee-python/milestone/504
Please reload this pagehttps://github.com/apify/crawlee-python/pull/2156
https://github.com/vdusek
https://github.com/Mantisus
https://github.com/Pijukatel
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.