Setting a variable value in Desired Capabilities

Hi,
I want to add this string in the Desired Capabilites
String downloadPath = System.getProperty(“user.dir”) + File.separator + “Downloads”
Can someone help?
I want to set this value for “download.default_directory”.

See if this helps:

1 Like

Thank you @Russ_Thomas for sharing tips.