manyvan2000
Programmer
hi,
i am testing a java based application. in this, i have some edit boxes with the same description. the only unique properties are the handles and class_index. but these are unreliable because the handles change with every session.
when i enter the screen from the menu, i get the properties as
A class: edit, attached_text:A, class_index:220;
B class: edit, attached_text:A, class_index:222;
then i am taken to some other screens based on the options i choose. then i am returned to this screen. now the widgets are
A class: edit, attached_text:A, class_index:222;
B class: edit, attached_text:A, class_index:224;
so class_index is also unreliable.
is there any way to solve this from winrunner?
i also tried to create a dll, which would get the handle of the widgets dynamically and set the values. but i could get only the handle to the window and not the widgets. is there any way to get the handles from win32?
i also tried to create a seperate thread that handles popup windows, inside the dll. but WR crashes on this. the problem with the exception handler in WR is that it runs in the same thread as the main script and if you pop up a message box without returning a value to WR, WR hangs. Is there any way to create a seperate thread for doing this?
-Mani
i am testing a java based application. in this, i have some edit boxes with the same description. the only unique properties are the handles and class_index. but these are unreliable because the handles change with every session.
when i enter the screen from the menu, i get the properties as
A class: edit, attached_text:A, class_index:220;
B class: edit, attached_text:A, class_index:222;
then i am taken to some other screens based on the options i choose. then i am returned to this screen. now the widgets are
A class: edit, attached_text:A, class_index:222;
B class: edit, attached_text:A, class_index:224;
so class_index is also unreliable.
is there any way to solve this from winrunner?
i also tried to create a dll, which would get the handle of the widgets dynamically and set the values. but i could get only the handle to the window and not the widgets. is there any way to get the handles from win32?
i also tried to create a seperate thread that handles popup windows, inside the dll. but WR crashes on this. the problem with the exception handler in WR is that it runs in the same thread as the main script and if you pop up a message box without returning a value to WR, WR hangs. Is there any way to create a seperate thread for doing this?
-Mani