Micro Focus QTP (UFT) Forums
Has anyone seen wincombobox.select leave the window? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Has anyone seen wincombobox.select leave the window? (/Thread-Has-anyone-seen-wincombobox-select-leave-the-window)



Has anyone seen wincombobox.select leave the window? - RandomGrin - 02-08-2013

Hey all,

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


RE: Has anyone seen wincombobox.select leave the window? - neha kandhari - 12-23-2014

Hi
I am facing the same issue in QTP 11
Can u please share what was the solution to this issue.

Thanks
Neha