Hi, See most of the custom Wpf controls are not recognized by QTP. If that is the case, we will have to touch the Wpf custom controls using Automation pattern. Please refer the below link for the example.
http://www.advancedqtp.com/forums/index.php/topic,153.msg895.html#msg895 Regards, Asiq Ahamed My Blogs: http://qtpcodes.blogspot.com - QTP http://seleniumcodes.blogspot.com - Selenium --- On Wed, 19/10/11, ES_auto <[email protected]> wrote: From: ES_auto <[email protected]> Subject: QTP WpfList - cant select or click anything inside List To: "QTP - HP Quick Test Professional - Automated Software Testing" <[email protected]> Date: Wednesday, 19 October, 2011, 12:03 AM i'm working on an application with WPF(.Net 4), using QTP 10/11, QTP has no problems recognising the different types of WPF objects. My problems start when i want to click an items inside the WPFList, i have tried calling all the different methods available in my script but i'm getting no where. In QTP's help documentation's EXAMPLEs they want to make you believe is very simple as: itemVal = WpfWindow("SimpleStyles").WpfList("Main Courses").GetItem(4) WpfWindow("SimpleStyles").WpfList("Favorite Courses").Select itemVal BUT if i try something similar in my script it does not work for me. this is what i have in my script: 1. select the WPFList from the menu WpfWindow("devname:=Cen.*","regexpwndtitle:=Cen.*"​ ).WpfMenu("wpftypename:=menu").Select "Management;Global Settings..." 2. trying to select something inside the wpfList WpfWindow("classname:=E.WpfUtilities.Containers.FloatingWindow").WpfList("wpftypename:=list view").WpfButton("classname:=System.Windows.Controls.Primitives.ToggleButton","name:=SignalIO").click this should work with discriptivve programming BUT is not can someone please let me know what i could be doing wrong. ... -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
