I've created draft letter in Yahoo mail and then get to this draft letter page. Now I'd like to get value of the Subject field using C# and Selenium Webdriver. I used the following code, but it returns empty string :
string subjectLocator = "//*[@id='subject-field']";
string actualSubject = driver.FindElement(By.XPath(subjectLocator)).GetAttribute("Value");
Using of Text property instead of GetAttribute
method also doesn't help.
How to get value of the subject field in yahoo draft letter using Selenium
Webdriver
and C#
?
http://prnt.sc/bye5ae - html code