Showing results for 
Search instead for 
Did you mean: 

Different links are having same name at php page!!

Not applicable

Different links are having same name at php page!!


I am having a php page where two different links are having same name and when I am trying to click on both the links by using

"click.NativeWebObject.Find "  method always it's clicking on 1'st link.

Could you please help me on this, how I can click on the second link??

Thanks in advance.




RE: Different links are having same name at php page!!

Hi Vinay,

Most probably, these links can be differentiated by some of their properties (e.g. 'href' or 'outerText'). You need to find out which exactly properties of these objects are different and search for the desired link object by these properties using the Find or FindChild method instead of the NativeWebObject.Find method. You can find more information on these methods in the 'Find Method' and 'FindChild Method' help topics.

If you have problems finding such properties, please post here the HTML code of both links. You can get the HTML code of a web object via its 'outerHTML' property.

Dmitry Nikolaev

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Changing options from outside of TestComplete


How to execute remote test and obtain results via Test Runner REST API


Comparing content of HTML table with Excel file data


Compare HTML table with Excel file and correct data in the file

Top Kudoed Authors