(LR) Support Tip: How to prevent "Evaluate JavaScript Invalid Character' during evaluation error

The following error might be encountered during replay of a TruClient script:

Evaluate JavaScript LR.getParam(`UserName`) on textbox ** failed - an argument is invalid: 'Code': JavaScript exception 'SyntaxError: Invalid character' during evaluation.

Make sure the correct single ' or double " quotes are used when passing arguments to the functions of the LR namespace. In some languages and on some keyboards the single quote character is different and causes the problem. Preferably use double quotes. 

Tags: