How to delete text string

I want to rename some data files name using Katalon. for that before enter new name i want to delete existing name. I tried with different methods . but those things still didn’t give me a happy result. anyone can help me to resolve this.

My code is

WebUI.verifyElementPresent(findTestObject('Datalocker/Dataset/sampledataset'), 30) 
WebUI.doubleClick(findTestObject('Datalocker/Dataset/input_dataSetName')) 
WebUI.sendKeys(findTestObject('Datalocker/Dataset/input_dataSetName'), Keys.chord(Keys.BACK_SPACE))
	WebUI.delay(3)
	WebUI.setText(findTestObject('Datalocker/Dataset/input_dataSetName'), 'testname')

1

Hello, did you try to use empty string in WebUI.setText()?

1 Like

Hi @Marek_Melocik… Now i tried with that way.it is working… Thanks:grinning::+1:

1 Like