chocolatey - How do I pass parameters that contain spaces? -
i want pass following "javaoptions" containing file path spaces within --params.
--params "'/javaoptions:-dwebdriver.jx.browser="c:/program files (x86)/testnav/testnav.exe"'"
this how can work:
choco install -y selenium --params "'/role:node /hub:http://localhost:4444 /capabilitiesjson:$capabilitiesjson /autostart /maxsession:1 /javaoptions:""-dwebdriver.jx.browser=\`"c:\progra~2\testnav\testnav.exe\`"""'" --force -d
note $capabilitiesjson
being interpolated properly.
Comments
Post a Comment