You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using the following code for a file upload:
final FileChooser fileChooser = page.waitForFileChooser( ( ) -> page.locator( "..." ).click( ) );
fileChooser.setFiles( new FilePayload( ... );
This works up to 1.39.0, but since 1.40.0 following error occurs:
com.microsoft.playwright.PlaywrightException: Error {
message='Exactly one of payloads, localPaths and streams must be provided
name='Error
stack='Error: Exactly one of payloads, localPaths and streams must be provided
at prepareFilesForUpload (<REDACTED>\playwright-java-13984471466917529150\package\lib\server\fileUploadUtils.js:41:75)
at ElementHandle.setInputFiles (<REDACTED>\playwright-java-13984471466917529150\package\lib\server\dom.js:526:77)
at ElementHandleDispatcher.setInputFiles (<REDACTED>\playwright-java-13984471466917529150\package\lib\server\dispatchers\elementHandlerDispatcher.js:148:38)
at ElementHandleDispatcher._handleCommand (<REDACTED>\playwright-java-13984471466917529150\package\lib\server\dispatchers\dispatcher.js:84:40)
at DispatcherConnection.dispatch (<REDACTED>\playwright-java-13984471466917529150\package\lib\server\dispatchers\dispatcher.js:351:39)
}
at com.microsoft.playwright.impl.WaitableResult.get(WaitableResult.java:54)
We are using the docker image "yukinying/chrome-headless-browser-stable:120.0.6099.224" within Testcontainers for our tests, so this should be compatible with 1.41.1.
I will try and provide a self contained example for this, but I would still ask you to check whether you can confirm this issue.
Thank you and best regards
Nils
The text was updated successfully, but these errors were encountered:
yury-s
added a commit
to yury-s/playwright-java
that referenced
this issue
Feb 1, 2024
System info
Source code
We are using the following code for a file upload:
This works up to 1.39.0, but since 1.40.0 following error occurs:
We are using the docker image "yukinying/chrome-headless-browser-stable:120.0.6099.224" within Testcontainers for our tests, so this should be compatible with 1.41.1.
I will try and provide a self contained example for this, but I would still ask you to check whether you can confirm this issue.
Thank you and best regards
Nils
The text was updated successfully, but these errors were encountered: