How to Clear contents of a HTML element ?

Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-12-17 02:24 PM
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-01-18 07:47 PM
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...
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-03-18 03:23 PM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-03-18 03:30 PM
Ah, so a write stage with """" as the value did the trick.
