12-18-2012, 12:27 AM
Hey all,
When selecting from a pulldown menu in my standalone app (Yes, it is not a web app) QTP seems to be sending an 'Enter' or something after making the menu pick.
My app basically throws an error saying you can't leave this form yet...but I wasn't trying to leave the form, I was just making a pull-down list selection. All I can figure is that QTP is sending an, 'Enter' or something after selecting the list item.
The line of code is:
I also tried:
And got the same results.
When making menu choices by hand, the app does not complain, so clearly QTP is doing something extra.
This problem has completely blocked my ability to do record and playback. The fact that the extraneous window pops up causes problems...I need to keep that from happening.
I'm too new to know what my options are...is there a descriptive programming or other method I could use to make the menu pick that might not cause this problem?
Or is there a way to tell WinComboBox to just make the pick without then sending an Enter or whatever it is doing?
Thanks,
Mark
When selecting from a pulldown menu in my standalone app (Yes, it is not a web app) QTP seems to be sending an 'Enter' or something after making the menu pick.
My app basically throws an error saying you can't leave this form yet...but I wasn't trying to leave the form, I was just making a pull-down list selection. All I can figure is that QTP is sending an, 'Enter' or something after selecting the list item.
The line of code is:
Code:
'Dialog("Other (page)").WinComboBox("Type").Select "MenuPickName"
I also tried:
Code:
'Dialog("Other (page)").WinComboBox("Type").Select 0
And got the same results.
When making menu choices by hand, the app does not complain, so clearly QTP is doing something extra.
This problem has completely blocked my ability to do record and playback. The fact that the extraneous window pops up causes problems...I need to keep that from happening.
I'm too new to know what my options are...is there a descriptive programming or other method I could use to make the menu pick that might not cause this problem?
Or is there a way to tell WinComboBox to just make the pick without then sending an Enter or whatever it is doing?
Thanks,
Mark