I'm running the Selenium-grid standalone server on Ubuntu using this command
java -jar selenium-server-4.8.0.jar standalone --downloads-path /etc/selenoid/download
but when the driver downloads files they are being downloaded to the path of "/home/my_username/" which is where I'm running the server from the command line at. So this looks like the default download path, which is ignoring my --downloads-path argument.
My server does have an /etc/selenoid/download directory as well and the my_username:myusername owns that directory. So selenium Grid should have permissions to create/delete/edit files/folders within that directory.
I'm also setting the download.default_directory when setting the options of the driver.
options = webdriver.ChromeOptions()
options.add_argument('download.default_directory=/etc/selenoid/download')
options.add_experimental_option('prefs', {
"profile.default_content_setting_values.notifications": 2,
"download.default_directory": "/etc/selenoid/download",
"download.prompt_for_download": False,
"download.directory_upgrade": True,
"safebrowsing.enabled": False,
"plugins.always_open_pdf_externally": True,
"plugins.plugins_disabled": ["Chrome PDF Viewer"]
})
webdriver.Remote(command_executor=grid_uri, options=options)
I'm lost at the moment, when I run this on my local mac machine it works as expected, but not on my linux server.