Skip to content

Return the license key the wait found - #1541

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

Return the license key the wait found#1541
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/vws-web-tools-issue-1499

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

Closes #1499.

get_license_details waited for the license key box to have non-empty stripped text, threw that value away, and then found the element and read .text a second time. Between the two reads the license page can re-render, and the second read is not guarded by anything — so the wait proves the key was there at one moment and the function returns whatever the box held at a later one, empty string included.

It now returns the value the wait produced.

On the reported symptom: a whitespace-only key does not pass the wait. " ".strip() is "", which is falsy, so WebDriverWait.until keeps polling and eventually raises TimeoutException. The way get_license_details can return an empty key is the second read, which is what this removes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YJDy3qA1LyNTh11zS98ukM

Closes #1499

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

get_license_details waits on text.strip truthiness whitespace-only key passes

1 participant