Forum Discussion

4m4d3u5's avatar
6 years ago

Parsed string vs input string

I have an application where someone needs to input an ip address to a batch file then I have test complete parse out the batch file with the .split() function and get the ip address and use it for the name mapping of all the button in test complete. When I try to concatenate this to my name mapping and try to click a button I get a "TypeError: Illegal invocation" error; however, when I try to do the same thing with an input box in test complete it works just fine. I am using javascript for my project. Does anyone know what the difference could be between using the .split() function and assigning the string I want to a variable and using the BuiltIn.InputBox? They are exactly the same string. 

  • When I did a substring of my parsed string it worked.