Skip to content

Name the VuMark add-target dialog locators - #1546

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

Name the VuMark add-target dialog locators#1546
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/vws-web-tools-issue-1504

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

Closes #1504.

upload_vumark_template had input[placeholder='Width'] and input[placeholder='Name'] inline in its body. Matching on placeholder text means the upload breaks if the target manager relabels a field — and buried mid-function, there was nothing to tell a maintainer that these are the fragile part or where the rest of them are.

The three locators are now named module constants with a comment saying why they match on placeholder text: the dialog gives these inputs no id and no name, so there is nothing steadier to match on.

I have deliberately not added fallback selectors. Guessing at #width or input[name='width'] without having seen the markup risks matching a different element on the page and silently uploading a template with the wrong width, which is worse than failing.

The name input is now fetched through the same presence_of_element_located wait as the other two, rather than a bare find_element that assumed the dialog had already rendered it.

No user-facing behaviour change, so no newsfragment.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YJDy3qA1LyNTh11zS98ukM

Closes #1504

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

upload_vumark_template hardcodes CSS selectors fragile to UI changes

1 participant