Retrieving Text between Text in Selenium C#

前端 未结 6 1397
走了就别回头了
走了就别回头了 2020-12-19 06:38

I am facing problem in retrieving Subject title of a mail from Unread mails using Selenium webdriver-C#.

Here\'s the HTML code :

6条回答
  •  星月不相逢
    2020-12-19 06:45

    I had the same problem. Worked on PhantomJS. The solution is to get the value using GetAttribute("textContent"):

    Driver.FindElementsByXPath("SomexPath").GetAttribute("textContent");
    

提交回复
热议问题