I am getting an error when entering a password that contains '\' character in a password text field. I tried using the field definition (eg. LoginPage.Password.TypeTextAndWait(pwd, false). Receiving this error:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: 'ExecuteCommand failed!
InError set by the client. Client Error:
Evaluation failed: SyntaxError: Invalid or unexpected token
at eval (<anonymous>)
at __puppeteer_evaluation_script__:1:35
at __puppeteer_evaluation_script__:1:562
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunction',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'((window.top && window.top.Telerik && window.top.Telerik.TestStudio && window.top.Telerik.TestStudio.Common && window.top.Telerik.TestStudio.Common.DomProviders && window.top.Telerik.TestStudio.Common.DomProviders.DomProvideFactory && window.top.Telerik.TestStudio.Common.DomProviders.DomProvideFactory.getProvider().getElementByTagNameAndIndex(document, 'input', 1)) || document.getElementsByTagName('input')[1]).value = "pwd"',ClientId:'CEB2876D',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'Evaluation failed: SyntaxError: Invalid or unexpected token
at eval (<anonymous>)
at __puppeteer_evaluation_script__:1:35
at __puppeteer_evaluation_script__:1:562')
InnerException: none.
It works fine if I run with Chrome (non-headless). Note: the last character of the pwd is the " \ "
Any suggestions or workaround would be greatly appreciated. This is urgent as our script is not able to execute properly at the moment.