Skip to content

Set an eager page load strategy for Chrome - #1538

Merged
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/vws-web-tools-issue-1496
Aug 27, 2026
Merged

Set an eager page load strategy for Chrome#1538
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/vws-web-tools-issue-1496

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

Closes #1496.

create_chrome_driver left the page load strategy at Chrome's normal default, so every driver.get blocks until load — all images, fonts, analytics and consent scripts included. None of that is what this package is waiting for: every element it touches is behind an explicit WebDriverWait, and wait_for_logged_in asks for document.readyState directly where a full load is what matters. A slow third-party request on developer.vuforia.com therefore turns into time added to every navigation, and at worst into a driver.get timeout on a page that was usable long before.

eager returns at DOMContentLoaded instead. The waits do the rest.

This is a real behavioural change and the reason to be careful with it, so it is worth saying plainly what backs it up: CI on this PR runs the whole suite against real Vuforia on six Python/OS combinations, and every operation this package has goes through create_chrome_driver. If eager is too early anywhere, that run is where it shows.

The # noqa: V101 is for vulture, which sees an attribute assigned and never read.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YJDy3qA1LyNTh11zS98ukM

Closes #1496

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJDy3qA1LyNTh11zS98ukM
@adamtheturtle
adamtheturtle merged commit 5018eea into main Aug 27, 2026
29 checks passed
@adamtheturtle
adamtheturtle deleted the adamtheturtle/vws-web-tools-issue-1496 branch August 27, 2026 06:21
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.

create_chrome_driver does not set page_load_strategy

1 participant