Skip to content

Workaround for strange Selenium behaviour#6431

Merged
tomhughes merged 1 commit into
openstreetmap:masterfrom
pablobm:selenium-workaround
Oct 6, 2025
Merged

Workaround for strange Selenium behaviour#6431
tomhughes merged 1 commit into
openstreetmap:masterfrom
pablobm:selenium-workaround

Conversation

@pablobm
Copy link
Copy Markdown
Contributor

@pablobm pablobm commented Oct 6, 2025

Extracted from #6424.

This is a workaround for Selenium/Webdriver throwing an error You are trying to upload something that isn't a file, despite not trying to upload anything.

In some circumstances, Selenium interprets the value test in a form field as a placeholder for a fake file upload. No idea why. Hat tip to https://blog.konoson.com/webdrivererror-you-are-trying-to-upload-something-that-isnt-a-file for the info.

This was discovered when trying to run a remote Selenium instance (in a separate Docker container). So I guess that's one such circumstance where this can happen.

@pablobm pablobm force-pushed the selenium-workaround branch from 529cf34 to b5d9662 Compare October 6, 2025 16:50
@tomhughes
Copy link
Copy Markdown
Member

Looks good to me, thanks.

@tomhughes tomhughes merged commit b57c487 into openstreetmap:master Oct 6, 2025
12 checks passed
@pablobm pablobm deleted the selenium-workaround branch October 22, 2025 09:05
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.

2 participants