Download file through RemoteWebDriver and chrome in headless mode
Solution:
Just make sharefolder on machine where running selenium node or where have access to and set properties for downloadpath on network path
String downloadFilepath = "\\localhost\folderfordownload";
chromePrefs.put("download.default_directory", downloadFilepath);
How to fix chrome headless not downloading files?
First, see this bug thread.
As of 4 days ago... what you need is to add the size of the headless...
if headless==True:
chrome_options.add_argument('--headless')
chrome_options.add_argument('--window-size=1920,1080')
As per the error:
unknown error: DevToolsActivePort file doesn't exist
You can add --disable-dev-shm-usage
as an argument:
chrome_options.add_argument('--disable-dev-shm-usage')
See @DebanjanB answer.
Hope this helps you!
Related Topics
How to Plot Multiple Functions on the Same Figure, in Matplotlib
Cleanest Way to Get Last Item from Python Iterator
Replicating Rows in a Pandas Data Frame by a Column Value
List Directory Tree Structure in Python
Timeit Versus Timing Decorator
Pandas: Conditional Rolling Count
Why Is '' > 0 True in Python 2
Splitting a Pandas Dataframe Column by Delimiter
How to Sort a List of Tuples According to Another List
Cannot Concatenate 'Str' and 'Float' Objects
Converting Python Dict to Kwargs
Two Variables in Python Have Same Id, But Not Lists or Tuples
Naturally Sorting Pandas Dataframe