I am facing problem in retrieving Subject title of a mail from Unread mails using Selenium webdriver-C#.
Here\'s the HTML code :
Using GetAttribute("textContent") instead of Text() did the trick for me.
GetAttribute("textContent")
Text()
Driver.FindElement(By.CssSelector("ul.list span")).GetAttribute("textContent")