I running selenium testcases with a remote driver on a docker container.
I want to upload files to a chrome browser running on a conatiner.
I have tried the following:-
- Copied file from my local system(MyDocuments folder) to the docker container. When I click on the upload button, I am not sure how to navigate through the folders and upload the file.
I tried this but at "input.sendKeys(imagePath);" line I get the message "element not interactable":- https://stackoverflow.com/a/54810763
- I am running testcases on a container but the screenshots are saved on my local machine. Is it possible that I can also upload the files from my local machine and not from container
If you need WebCam mock file for Chrome Docker node
I do run JavaScriptExecutor to execute JS file(s) on remote host. Adding dummy input at about:blank
With enabled LocalFileDetector for RemoveWebDriver do
Then run another JavaScriptExecutor for file
As a result, we have downloaded demo.y4m to /tmp folder on remote machine. ( Keep in mind /tmp directory on remote machine will keep uploded file untill recreation of container is done)
For specifying upload path