Micro Focus QTP (UFT) Forums
Identifying Dynamic tab in Java table - 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 Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: Identifying Dynamic tab in Java table (/Thread-Identifying-Dynamic-tab-in-Java-table)



Identifying Dynamic tab in Java table - vinod_qtp - 12-28-2010

Identifying Dynamic tab in Java table
I have struck identifying a dynamic tab in Java table. I have a javatable with mulitple tabs and no of rows under each tab. The tab name will be static, For example the tab names are Temp(3), Untemp(6)
and Completed(9), the tab name will be same and number in the () will get change with respective to the no of rows. In this case, i'm not able to identify the Dynamic tab.

Recording Code
Code:
JavaWindow("swapping").JavaTab("flip: 0").Select "Temp (3)"

Tried with DP and RG
Code:
JavaWindow("title=:swapping").JavaTab("attached text=: 0","value=: Temp(.*)").Select

Properties of Java Tab in Object Spy

Above DP code doesn't work for me. Please help me in identifying the dynamic tab. Thanks in Advance

Properties Values
Class Name - JavaTab
attached text - flip: 0
class description - tab
developer name - flipout
path - flipStatusTabbedPane
tagname - flip: 01
toolkit class - flip:0901010
value - Temp (3)


Thanks
Vinod


RE: Identifying Dynamic tab in Java table - vinod_qtp - 12-29-2010

Any one has idea on this!


RE: Identifying Dynamic tab in Java table - vsireesha94 - 11-19-2012

Hi Vinod,
You can try with toolkit class as mandatory property in combination with value or attached text in DP to identify Javatab.

It worked for me.Hope it will help u


RE: Identifying Dynamic tab in Java table - Arul - 11-30-2012

Hi
- What is the error you are getting?
In descriptive programming, always we used the :=
Shall we used =:? Please clarify, if i am wrong correct me
Tried with DP and RG
Code:
JavaWindow("title=:swapping").JavaTab("attached text=: 0","value=: Temp(.*)").Select

Thanks,
Arul