I am getting some problem with the "win_get_text" function in WinRunner 8.20. I am trying to get the text from SQL window. I am using Oracle9i.
Its giving the return values -10132 which is for E_RECT_COVERED ( Desired rectangle does not appear on screen), however when i do show in GUI MAP Editor its recognising the window properly.. I have tried set_window property also but still its not capturing the text from the SQL Window. [img]/images/graemlins/confused.gif[/img]
Can anyone please explain a bit more what causes this problem and what can be its solutions...?
It means the window is not top level. Make sure you win_activate the sql window first. Better yet, use db_execute_query OR perform a select-all / copy - then retrieve with the cso library function get_clipboard_text.