Clicking on a field with a randomly-generated number

So it appeared to me, you wanted to append 'Test_Group_' + random-string to your various TestObject names. If that is not the case, then you need to clarify. For example, perhaps you don’t want Test_Group to be part of the string stored in the variable but instead, use:

String randNum = RandomStringUtils.randomNumeric(5)

WebUI.setText(findTestObject(‘Object Repository/Page_/input_Player Group Name_PlaceHoldertxtPlayerGroupName’), ‘Test_Group_’ + randNum)

Then in your click…

If this is still wrong, you need to send more info about what you’re trying to achieve. Perhaps the following advice will help: