Not able to identify few links using xpath | Selenium Forum
M
Posted on 12/04/2016
Hi Ashish,

Scenario: Clicking all the links on the page. It is identifying all the links except 3 links below (Each of these 3 links are displaying in 2 lines):
1. FISCAL 2015 PRESIDENT'S MESSAGE
2. ACTUARY REPORTS AND SPECIAL EXAM REPORTS
3. OUR COMMITMENT TO DIVERSITY

URL: http://www.cppib.com/en/sitemap.html

Please help me.
Thanks,

M
Replied on 12/04/2016

what is the problem?


M
Replied on 12/04/2016

I used the below xpath for a particular section:
xpath: "//ul[@class='level-1 mini']/li/a"

All the links present under this section are identified except the above mentioned 3 links. Want to know why only those 3 links are not identified ?


M
Replied on 12/04/2016

I am not able to see any of the above mentioned links on the page. Nevertheless check below xpath and let me know if it helps you:
//*[@class='sitemappar parsys']/div[1]/div/div/div/ul/li/a


M
Replied on 13/04/2016

give me your code.