Error: Object is not currently displayed
User mhammond0318 (Mike_Hammond@idx.com.nospam) posted:
I am having a sync problem because of an Object not displayed error.
This is created because a dictionary lookup field will quickly flash
a modal dialog window on the screen, yet the script is trying to
access a button on the main form.
Typically, I would look for that window and wait until it disappears,
but this is a keyword system that makes it very difficult to check
for the modal window.
So WinRunner is executing a two lines
The sync function tries to make sure that btnSave is displayed. And
in fact WinRunner returns a true for the button's enable state. It
does not return a value for the displayed property (using either the
obj_get_info, or button_get_info). I also check to make sure WindowA
has focus, but WinRunner does not throw an error.
The real problem is that when the button_press command is executed
WinRunner throws the Object is not currently displayed error dialog.
So it appears that the button_press function is calling another
function that is able to pick up this Modal Window or the fact that
the Save button is not really displayed. Does anyone know that
function that the button_press is calling, so I can call it, most
likely in a dll. Or what function can be used to determine that the
button is not displayed?
One thing that would be very difficult to implement is trying to sync
by looking for the Modal Dialog window to disappear. It would be just
too much of an invasive change.
Re: Error: Object is not currently displayed
User Franzen, SPS PROFI, DA (C.Franzen@DeutschePost.de.nospam) posted:
as I understand it, it is the script making the AUT display the modal
window. That would enable you to wait a specific time before you attempt to
push the button. If your keyword systems allows this, IŽd try that. Just
wait for the longest time such a lookup could take before you push the
Besides: As youŽre a keyword system user, how would you -as you suggested-
call any custom dll function?
Schwarz, Prof. Spruth & Associates Unternehmensberatung AG & Co. KG
Deutsche Post World Net