Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
how to obtain Key value from SwfTreeView
posted

Hello,

         I am using QTP 9.2 with Infragistics TestAdvantage 2006 vol1 CLR 2.0. The object i am trying to work on is swftreeview. I am trying to click on a particular node on the tree. Here is the code i am using,

count=Browser("xyz").page("xyz").frame("xyz").swfobject("xyz").swftreeview("Xyz").getitemscount

for i= 0 to count-1

item_name=Browser("xyz").page("xyz").frame("xyz").swfobject("xyz").swftreeview("Xyz").getitem(i)

 If item_name = "Checked name"

count=Browser("xyz").page("xyz").frame("xyz").swfobject("xyz").swftreeview("Xyz").ActivateNode(i)

End if

Next

Whenever i run the code i get the error,  " No Node with Key:0 "

Can anyone please take a look at it and let me know how to obtain the keyid for the particular node ??