08-02-2010, 11:08 AM
Hi PrabhatN, thanks for your great reply and i am new to QTP, as per your reply how to get value of the "selection". If you dont mind can you please explain in details.
I am providing script to you for better understanding. I am trying GetProperty with different values as given below. Please correct me if i am doing wrong?
I am providing script to you for better understanding. I am trying GetProperty with different values as given below. Please correct me if i am doing wrong?
Code:
SwfWindow("Lilly Science Grid").SwfTab("LSB_OCT_Workspace").Select "Summary" // Focus
sumTabName = SwfWindow("Lilly Science Grid").SwfTab("LSB_OCT_Workspace").GetROProperty("name")
msgbox sumTabName -- i am getting output like that this name :"LSB_OCT_Workspace"
sumTabName1 = SwfWindow("Lilly Science Grid").SwfTab("LSB_OCT_Workspace").GetROProperty("value")
msgbox sumTabName2 -- i am getting output like blank message box.
sumTabName2 = SwfWindow("Lilly Science Grid").SwfTab("LSB_OCT_Workspace").GetROProperty("text")
msgbox sumTabName1 -- i am getting output like blank message box.
Chandra Sekhar