Hi Nidhi
'here x1,x2,y1,y2 Out are you Parameter
'No need to specify any value for x1,x2,y1,y2 variable
'Must not use any constant value
find =Winobect("DialogObj").GetTextLocation ("TabName" ,x1,y1,x2,y2)
If find =True Then
Winobect("DialogObj").Click (x1+x2)/2 ,(y1+y2)/2
Else
msgbox "not found OK text"
End If
=======Other======
if any tool-tip display in each Tab, then find tool-tip and click on that
feel free to ask if you any query
--
Thanks & Regards
Sujit :)