Forum Discussion

chanduaug24's avatar
chanduaug24
Occasional Contributor
14 years ago

naming button

hi , 

         while testing an application , i got a problem in naming a button as it takes the same link as the previous button in a different tab.





there are 3 tabs  a , b , c 

 and there is an edit button ,when clicked highlights the text space for editing in the 'a' tab.



the same button also available in the 'b' tab also which performs same action. 

 

so when i try to name this button it takes the name of the button in 'a' tab. the positions of the buttons in these two tabs is different. 

how can i name it as diff for this button.


1 Reply

  • Hi,



    If recognition parameters for tabs a and b are the same, TC will obtain the first object which meets them. Most probably, any active tab in your application always has the same name because of the way it is mapped. Look at your tab objects, find the difference between them and map them as individual objects using property values unique for each tab.