Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to upload file with selenide #529

Open
sytnykma-ss opened this issue May 18, 2022 · 9 comments
Open

Unable to upload file with selenide #529

sytnykma-ss opened this issue May 18, 2022 · 9 comments

Comments

@sytnykma-ss
Copy link

Since selenium 4.0 released and newest versions I started getting this error when trying to upload file:
UnsupportedCommandException: unknown command: unknown command: session/f6ad259d39d4b1f9be1e1861fa831db6/se/file
Screenshot: file:/home/circleci/unified-messaging-service-tests/build/reports/tests/1652857847769.34.png
Timeout: 7 s.
Caused by: UnsupportedCommandException: unknown command: unknown command: session/f6ad259d39d4b1f9be1e1861fa831db6/se/file

Using always - image: selenoid/chrome:latest
Investigated a little and found out that 3+ versions of selenium worked without /se/file, so it was only /file as selenoid, for now I think selenoid still waits for /file and can't work with /se/file

@vania-pooh
Copy link
Member

@sytnykma-ss yes, this change was done on Selenium side. Currently this was fixed in Moon only.

@sytnykma-ss
Copy link
Author

sytnykma-ss commented May 18, 2022

@vania-pooh Ok but when it will be fixed on the selenoid/chrome?

@aandryashin
Copy link
Member

aandryashin commented May 18, 2022 via email

@sytnykma-ss
Copy link
Author

@aandryashin as I mentioned, I use image: selenoid/chrome:latest and it's not work there

@aandryashin
Copy link
Member

aandryashin commented May 18, 2022 via email

@sytnykma-ss
Copy link
Author

@aandryashin got this error in console:
2022/05/18 19:21:36 [-] [INIT] [Loading configuration files...]
2022/05/18 19:21:36 [-] [INIT] [/usr/bin/selenoid: browsers config: read error: open /etc/selenoid/browsers.json: no such file or directory]

I'm using circleCi and just mentioned what image I want to use on config yaml file, it was selenoid/chrome:latest, I set up you one and started getting this error and have no Idea how to configure that

@aandryashin
Copy link
Member

aandryashin commented May 18, 2022 via email

@vania-pooh
Copy link
Member

@sytnykma-ss we will not fix this in selenoid/chrome because Chromedriver is a binary developer and maintained by Google. In this binary file upload API is still at /file.

@sytnykma-ss
Copy link
Author

@vania-pooh @aandryashin Thank you guys for your answers! For those who met this problem - just use - image: selenium/standalone-chrome:latest instead

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

No branches or pull requests

3 participants