In a Windows app, is there a way to get QTP to recognize the splitter bar regardless of its location? I'm using QTP 9.2 with TestAdvantage 2006 v2 CLR 1.x and I'm trying to record double-clicking the splitter bar to return a panel to its default size, but QTP does not recognize the splitter bar unless I use Low-Level Recording. Here's the code that was generated when I moved the splitter bar and then double-clicked it:
Window("Company").Window("Purchase Order").WinObject("WindowsForms10.Window.8.app3").Drag 351,285Window("Company").Window("Purchase Order").WinObject("Item Details").Drop 350,131Window("Company").Window("Purchase Order").WinObject("WindowsForms10.Window.8.app3").DblClick 352,421
If I manually move the splitter and comment out the first two lines so the script only performs the DblClick, QTP doesn't find the splitter. Removing the coordinates so that the DblClick is generic causes an "Invalid number of parameters" error.
Any help someone could give me will be appreciated!
Dennis,
I am not sure what splitter control you are using or if the splitter is part of another control. Using the Object Spy, please provide me more details about the splitter. If you can get an SwfTypeName for the splitter, please provide that. If that property isn't available, then please provide me with what details you can so that I know what control you are working with.
Alan