Click Text activity not working with text containing hyphen ("-")



I have a web page where I need to click on some text and then perform some actions later. There are no reliable selectors for the text items. This solution works fine when the text does not contain any special characters, but if it the text is like “User-Ten00002108”, it fails to click the text. Screens attached. Please let me know if there is a workaround for this.


Hi @rakesh_prasad,

i hope you did’t select the selector.



No, I have not selected any selector for the text. Click Text has been enclosed in a Attach browser activity, and the text is supplied as the input. This problem is solved when using Click OCR Text, but then it fails to click on simple text (without “-”). I can put an if condition to check if “-” is present and then toggle with Click Text and Click OCR Text. But I want to know if there is a better solution to this.