Currently, I am attempting to use Selenium to upload a file by sending keys (the file path). While this method is successful in uploading the file, it also triggers the file picker dialog which remains open indefinitely. Although no actual issues occur, when running tests in headless mode, failures arise with error messages such as:
Failed to decode response from marionette
or Tried to run command without establishing a connection
.
How can I prevent the file picker dialog from opening? I have attempted implementing this solution, but unfortunately, it does not appear to resolve the issue for me.