Playback causes different behavior than manual - 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: Playback causes different behavior than manual (/Thread-Playback-causes-different-behavior-than-manual) |
Playback causes different behavior than manual - RandomGrin - 12-18-2012 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 RE: Playback causes different behavior than manual - elango87 - 12-24-2012 Try the code below, Code: Dialog("Other (page)").WinComboBox("Type").Select "MenuPickName" If it doesn't work, try the code below, Code: Dialog("Other (page)").WinComboBox("Type").Click |