2017-02-11 8 views

答えて

1

hereを示すようDesiredCapabilitiesChromeOptionsであなたのコード内で明示的に設定しない限り、このファイルには、Google Chromeの... からdefault download locationに着陸する予定。

ダウンロードフォルダのデフォルトの場所。
* nixシステム:

String location = System.getProperty("user.dir") + "/Downloads"; 

のWindows:

String location = System.getProperty("user.dir") + "\\Downloads"; 
+0

コード内のデフォルトのフォルダを取得する方法はありますか? –

+0

デフォルトの場所は 'System.getProperty(" user.dir ")+"/Downloads "in * nixシステム、' System.getProperty( "user.dir")+ "\\ Downloads" 'です。 –

関連する問題