Skip to content

Conversation

@Skn0tt
Copy link
Member

@Skn0tt Skn0tt commented Dec 8, 2025

Closes microsoft/playwright#38450. We were only checking file existence on the server (https://github.com/microsoft/playwright/blob/f9e039408b70ab27b5107de3863343236d8835ae/packages/playwright-core/src/server/dom.ts#L655-L657), but didn't surface the error, so it showed up as a timeout. In Node.js, we check file existence on the client (https://github.com/microsoft/playwright/blob/f9e039408b70ab27b5107de3863343236d8835ae/packages/playwright-core/src/client/elementHandle.ts#L263), mirroring this behaviour to Python.

@Skn0tt Skn0tt requested a review from dgozman December 8, 2025 08:31
@Skn0tt Skn0tt self-assigned this Dec 8, 2025
@dgozman
Copy link
Contributor

dgozman commented Dec 8, 2025

I don't quite understand why server-side code would lead to a timeout, but client-side check sounds good to me.

@Skn0tt
Copy link
Member Author

Skn0tt commented Dec 8, 2025

The server-side check is in a retry condition, and we don't abort the retry when it occurs. Client-side is better anyways because it throws the platform-standard exceptions.

@Skn0tt Skn0tt merged commit d3f5438 into microsoft:main Dec 8, 2025
38 checks passed
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.

[Feature]: Descriptive error message for a file not found error using set_input_files()

2 participants