Forum Discussion
AlexKaras
3 years agoChampion Level 3
Hi,
Actually, .Keys("") does nothing, so I am not surprised that the field is not cleared. (To press Space key you should call .Keys(" ") -- space between quotes.)
What if you give a try to something like:
obj.Click(); // to set input focus into control;
obj.Keys("^A"); // Control-A to select all text (or "[Home]![End" -- Home, then Shift-End for the same purpose, or anything else that will select all text within control
obj.Keys("[Del]"); // Delete to clear the control
Does it help?
Related Content
- 4 years ago
- 3 years ago
- 2 years ago
Recent Discussions
- 13 hours ago