cancel
Showing results for 
Search instead for 
Did you mean: 

Different links are having same name at php page!!

Highlighted
Not applicable

Different links are having same name at php page!!

Hi,



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.



Regards,

Vinay


1 REPLY 1
Highlighted

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:
Announcements
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

Participate!

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

Participate!

Comparing content of HTML table with Excel file data

Participate!

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

Participate!
Top Kudoed Authors