cancel
Showing results for 
Search instead for 
Did you mean: 

How to Clear contents of a HTML element ?

Anonymous
Not applicable
3 REPLIES 3

Denis__Dennehy
Level 15
I think the answer to this question is for you to do some experimentation to find out how to clear text for your element - not all elements are the same so there is no generic answer. Have you tried using a write stage with the text set to """"?  Have you tried using global send keys to clear the text as trained in the Surface Automation training (select all and then delete keystrokes)? etc...

NevilleWatson
Level 4
Facing a similar challenge.   I have spied a win32 app and need to clear a text field before inserting a new value.  The only action available form a Navigate stage is ""Windows Press Keys"" which simply enters the string literal I have provided.  I.E. when I provide ""{CTRL}"" then {CTRL} appears in the field.

NevilleWatson
Level 4
Ah,  so a write stage with """" as the value did the trick.