A working xpath based on the html provided would be:
//a[@id=’4ea70e73ff0cae84ee82de1f’]
In webdriver world you would be looking at the following:
String titleAttribute = driver.findElement(By.xpath(“//a[@id=’4ea70e73ff0cae84ee82de1f’]“)).getAttribute(“title”);
I suspect however that the ID is randomly generated and you’ll need something a little more involved than the above.
-- 
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
So how exactly are we supposed to you an accurate xpath when you have given us 1 element from the page with an invalid ID?
I mean seriously?
Let me just read your mind for you and magically construct the html using a mixture of black magic, ritual sacrifice and my amazing telepathy skills…
Got it, the answer you want is now in my mind, use your own telepathy skills to get it!
(apologies if the above is a bit OTT but come on how are we supposed to answer anything without any information?)
*sigh*
An XPath is a representation of a journey down your DOM. If we don’t have a map of the DOM, we can’t tell you how to navigate down it to your required destination.
What you are asking us to do is direct you from India to Britain when you are only giving us a map of London…
From: seleniu...@googlegroups.com [mailto:seleniu...@googlegroups.com] On Behalf Of Arun Dev @ work
Sent: 27 October 2011 11:22
To: seleniu...@googlegroups.com
Subject: Re: [selenium-users] how to get title element from anchor tag (<a .... </a>) by Selenium
-- 
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
driver.find_element(:tag_name => 'a').attribute('title').text