Running script with special character like \ / : * ¿ ? " ' < ,> |

When a run for example:
WebUI.setText(findTestObject(‘Object Repository/2- Crear folder/aplication/input_(Required)_name’),‘\<’ )

Katalon does not set the character < in input_(Required)_name , so I have been looking if I need to use UNICODE in order to get the character < in my text, but I haven’t found a solution.

Thanks ahead.

1 Like

Hey @jorgeluisalmanzar, try doing double backslashes like '\\<' to see if it solves your problem.

1 Like

Hi @jorgeluisalmanzar

If I understand correctly, you want to input just the < character. To just insert a < you do not need to use a ** in front of it. The line of code you submitted would actually cause an error (unexpected char).

So if you want to insert just a < use this:

WebUI.setText(findTestObject(‘Object Repository/2- Crear folder/aplication/input_(Required)_name’),‘<’ )

And if you want to insert \< use this:

WebUI.setText(findTestObject(‘Object Repository/2- Crear folder/aplication/input_(Required)_name’),‘\\<’ )

Note the text paramater for setText in each

1 Like

Hey guys, Thanks for replying, I could solve the problem.

1 Like

Glad your problem was solved! Please take a minute and mark the correct answer you received so that person gets credit for assisting with your resolution.

Best, Sara