Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Playback causes different behavior than manual
#1
Solved: 11 Years, 4 Months ago
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:
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
Reply
#2
Solved: 11 Years, 4 Months ago
Try the code below,

Code:
Dialog("Other (page)").WinComboBox("Type").Select "MenuPickName"
Dialog("Other (page)").WinComboBox("Type").Click
Or
Dialog("Other (page)").WinComboBox("Type").Select 0
Dialog("Other (page)").WinComboBox("Type").Click

If it doesn't work, try the code below,

Code:
Dialog("Other (page)").WinComboBox("Type").Click
Dialog("Other (page)").WinComboBox("Type").Select "MenuPickName"
Dialog("Other (page)").WinComboBox("Type").Click
Or
Dialog("Other (page)").WinComboBox("Type").Click
Dialog("Other (page)").WinComboBox("Type").Select 0
Dialog("Other (page)").WinComboBox("Type").Click
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  WinList Behavior marse91782 0 2,945 11-24-2016, 06:32 AM
Last Post: marse91782
  Inserted WebEdit value is not sticking in UFT during playback priyaUFTlearner 3 3,162 04-14-2015, 01:28 AM
Last Post: priyaUFTlearner
  Need Excel template for mapping manual scripts to Automation scripts. ACCBAJPA 0 2,967 09-19-2013, 03:02 PM
Last Post: ACCBAJPA
  QTP's behavior with MFC - ultimate grid (ProfUIS) Syeda_Shilpa 0 3,928 03-25-2011, 06:25 PM
Last Post: Syeda_Shilpa
  Automate Manual scripts sudhaj 3 4,004 07-12-2010, 08:28 AM
Last Post: sudhaj

Forum Jump:


Users browsing this thread: 1 Guest(s)