« Return to Thread: How to get text (Title) from multiple links?

How to get text (Title) from multiple links?

by dkharod :: Rate this Message:

Reply to Author | View in Thread

Hi,

I have the following HTML and want to know how to get titles for all links that has class="something" (not ALL links on the page):

...A class=linkClassName title="">People Search</A...
...A class=linkClassName title="">Link 1</A...
...A class=linkClassName title="">Link 2</A...
...A class=linkClassName title="">Link 3</A...

I want to get all link texts i.e. "People Search", "Link 1", "Link 2" and "Link 3". I am using Selenium for .NET

Thanks.

 « Return to Thread: How to get text (Title) from multiple links?