How to delete the text of a field?

Hello,

I tried to use “type into” activity with the text “” (nothing) using the option “empty field” to delete all the text contained in such field.

It only removes the first line of the field.

How could i remove all the text of such a field?

EmptyField - When this check box is selected, all previously-existing content in the UI element is erased before writing your text.

I tried such an option but it only erases the first line of all the text contained in such a field. @Pradeep_Shiv

you can use this “[k(back)]”

image
like this

1 Like

@EngAnalyst

In the Type Into try using a String.Empty and then again add the TypeInto with what value needs to go in.

Hello EngAnalyst,

As simple way to do it is to use shortcut, select all the content with a crtl+a wih the SendHotkey activity. And then a “del” (still with the Send Hotkey) might work. With that you will be sure that the content has been deleted.

Should I use this activity with the “emptyfield” option enabled?

It does not work since the field does not have the property to use such a command.

image
only this!

just use type into dont use Send hot key also it’s working fine for me!
indicate on that element and pass that command!

Still does not work… the field is very rare.

@EngAnalyst Can you perform a Send Hot Key Ctl+A on that Field to Select all the Text ?

1 Like

No… it is a rare kind of field that does not allow such a shortcut

@EngAnalyst Oh Can we See that Field? :sweat_smile: