webdrivermanager icon indicating copy to clipboard operation
webdrivermanager copied to clipboard

Cannot upload files for browsers running in docker

Open sajithatharaka opened this issue 5 years ago • 5 comments

Description of the problem: When I try to perform file upload in SUT via the browsers running in docker, the file upload popup is not opening and neither accepts any files causing scripts to fail.

Browser and version: Safari

Operating system: Ran on docker

WebDriverManager version: v5.0.3

sajithatharaka avatar Oct 16 '21 06:10 sajithatharaka

Maybe you can try to mount a volume in the Docker container using the method dockerVolume() (see doc).

bonigarcia avatar Oct 16 '21 14:10 bonigarcia

Thanks, @bonigarcia . Will check it out. Cheers

sajithatharaka avatar Oct 18 '21 04:10 sajithatharaka

Same issue here. Even through I use the a LocalFileDetector in the driver. It also throws me an exception.

KentGu avatar Oct 27 '21 02:10 KentGu

FYI, it looks like a selenium and has been fixed already. https://github.com/SeleniumHQ/selenium/commit/a7102f2a54718f69e7755cd985e6bd4be3ec78b5

KentGu avatar Nov 04 '21 08:11 KentGu

This issue is related to #746, but it seems it is a limitation on the Selenium WebDriver API.

bonigarcia avatar Nov 17 '21 15:11 bonigarcia