Hi,
I found a way to pass parameters containing spaces as a single parameter in Webdrivers Sampler or Javascript Sampler generally.
My parameter called P_TITLE have the value "Welcome page" (with space character)
I replace all space characters with another character, i choose the # character.
So, in the Webdriver Sampler, i want to pass the modified P_TITLE like this
Parameters = ${__javaScript("${P_TITLE}".split(' ').join('#'))}
And in the script
var TITLE_WITH_SHARP = WDS.args[0];
WDS.log.info("TITLE_WITH_SHARP = " + TITLE_WITH_SHARP); ==> Welcome#page
// replace # by space
var TITLE = TITLE_WITH_SHARP.split('#').join(' ');
WDS.log.info("TITLE = " + TITLE) ==> Welcome page
Regards
Vincent D