Form shift out of visible window on dropdown click
We are using QTP 11 to try to automate tests of a BMC Remedy application. During playback, when I trigger the click event on the button for the dropdown the entire form shifts off the left side of the window so that the left edge of the dropdown button is at the left border and the dropdown list is also at the left border. The image stays this way after the dropdown selection is made but since the rest of the form is not in the visible screen the script fails. If I refresh (<Ctrl>R) the window the dropdown also goes back to the default value.
Drop0 - Form before click, Drop1 - Form acting normal, Drop2 - Form shifted during playback.
During the record of this test and doing the click with an actual mouse, does not cause the shift happen. Nor does it happen in real time. The Active Window images from the record do not display this either.
It appears that the BMC GUI builds their own dropdowns using a textbox, button image, and a hidden table which the visibility style starts as hidden. I used Spy to get the properties of the drop down.
I have seen this type of thing on public HTML based web pages when there are too many close tags in the wrong places.
How do I debug what is actually causing this? Is it possible to make the dropdown list visible without triggering the click event. Is there a way to shift the form back to the right after the selection is made?
Re: Form shift out of visible window on dropdown click
I think I have found something. I need to test it some more. If I set focus on an object in the repository, even though it is not visible on the screen, the screen will shift right until the left side of that object is even with the left side of the window. So I will try to set focus on each object prior to using it to see if that is a quick, if tedious, solution. I will post back if that works.