Not able to get Value Attribute using WebElement.getAttribute("Value.Value") and WebElement.getAttribute("LegacyValue") using WinAppDriver
Hi Guys!!!
I am currently in the process of automating the UWP application using WinAppDriver/Appium and Selenium WebDriver. I am facing an issue while getting the value attribute for the text box. I tried getting Legacy Value as well as Value.Value but getting null
WinAppDriverLog:
TestCode:
WinDriver Code
Console log:
I am confused as I tried getting "LegacyName" ( as per suggested here>> https://github.com/microsoft/WinAppDriver/blob/a6f3d7bca447e0c13a33f76454600c1fe737ab10/Tests/WebDriverAPI/ElementAttribute.cs#L46>and it worked but unfortunately "LegacyValue" or "Value.Value" does not work.
Thank you all in advance!!!
nishantworah Try text.GetAttribute("value")
@nishantworah possibly text.Text will work too.