Skip to content

Open the target-key tab through one shared helper - #1547

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

Open the target-key tab through one shared helper#1547
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/vws-web-tools-issue-1505

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

Closes #1505.

wait_for_vumark_target_link and get_vumark_target_id each defined their own _click_target_key_tab closure, byte-for-byte identical apart from the wait they were handed. Both are inside a WebDriverWait.until, which is what makes "click the tab" read as "click the tab over and over".

Both now call one _open_target_key_tab helper, whose docstring states what the wait is for.

To be accurate about the reported symptom: the tab is not clicked on every poll. _click_target_key_tab returns True, so until returns after the first click that goes through; the polling only covers the tab not being clickable yet, and the second until in wait_for_vumark_target_link — the one that polls until the link appears — never touches the tab. The duplication is what made that need checking twice.

No behaviour change, so no newsfragment.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YJDy3qA1LyNTh11zS98ukM

Closes #1505

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

wait_for_vumark_target_link clicks target-key tab on every poll iteration

1 participant