02-08-2013, 11:05 PM
Hey all,
My test makes a lot of selections on a lot of wincomboboxes, for example:
Most of the time, that works fine.
But about 1 in 10 times or so, it makes the pick, and then exits the current Dialog. The Dialog would be expected to close if it was sending a Refresh or an Enter, but it should not be doing that.
I have about 20 different wincomboboxes, and it will happen on a random different one at any random time. When I loop, it might work 3 times on a certain wincombobox, then fail the 4th time. Or it might fail the 1st time. Or it might work every time.
It's very difficult to deal with this inconsistency.
Has anyone seen this before? Any idea what I can do to keep QTP from randomly trying to leave the Dialog when I am just trying to make a selection?
QTP Version 11.
(If you think doing the same thing will yield different results, you might be insane....or you might be running QTP)
Thanks,
Random
My test makes a lot of selections on a lot of wincomboboxes, for example:
Code:
Dialog("Other (page)").WinComboBox("LSCDSI Unit").Select strLUnit
Most of the time, that works fine.
But about 1 in 10 times or so, it makes the pick, and then exits the current Dialog. The Dialog would be expected to close if it was sending a Refresh or an Enter, but it should not be doing that.
I have about 20 different wincomboboxes, and it will happen on a random different one at any random time. When I loop, it might work 3 times on a certain wincombobox, then fail the 4th time. Or it might fail the 1st time. Or it might work every time.
It's very difficult to deal with this inconsistency.
Has anyone seen this before? Any idea what I can do to keep QTP from randomly trying to leave the Dialog when I am just trying to make a selection?
QTP Version 11.
(If you think doing the same thing will yield different results, you might be insane....or you might be running QTP)
Thanks,
Random