when I use obj_get_text to get text from a object,I can get the text several times at the beginning,but there will no text be catched after run serveral times.Then I restart the computer,and the function can capture the text again, but after a few times,"no text was found" show on the screen again.Is there anyone who knows the reason?
Thank you in advance! [img]/images/graemlins/smile.gif[/img]
Wow I guess more specifics may be helpfull. What kind of app web, or other. Version of WinRunner (help menu .. about Winrunner) .. a snippet of your code.
Also why do you have to get that text several times? Is this a new instance of the page or update? If you can simulate the problem put a breakpoint one line before obj_get_text.
When you hit the breakpoint bring up your gui map and go to that object .. make sure that object exists via the show in the gui map! If it does not then see if the caption or position changed on you .. developers can be tricky like that!
Also make darned sure that you always set_window that your object belongs to .. or nothing will work .. just check lists I always go through when bad things happen to good meta programers.
Smoke me a kipper, I'll be back for breakfast!
Sr. QA Engineer