How to clear masked input box text.
It's like a edit_box for user input,
when winrunner recording it is recording as
obj_type ("MhMaskInput.MhMaskInputCtrl.1_25","email@example.com m");
1.how can we clear the objects info.
2.while replay first it as to clear the text and enter some text in it.
i tried using obj_type("MhMaskInput.MhMaskInputCtrl.1_25","") but it not clearing the text.
greatly appreciated you help.
Thanks & Regards
Re: How to clear masked input box text.
If the object in question is recognized by WR as an edit box, then the simplest solution would be to use:
edit_set(objName, "New Text");
If not, perhaps you could use something like:
obj_mouse_dbl_click(objName, 5, 5); # hightlight all text
obj_type(objName, "New Text"); # replace text
[ 06-02-2003, 09:11 PM: Message edited by: Charles Reace ]
[i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.</i] (The Song of Roland)