WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Not able to get Value Attribute using WebElement.getAttribute("Value.Value") and WebElement.getAttribute("LegacyValue") using WinAppDriver

Open nishantworah opened this issue 1 year ago • 3 comments

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

image

WinAppDriverLog: image

TestCode:

image

WinDriver Code image

Console log:

image

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 avatar Sep 13 '24 18:09 nishantworah

nishantworah Try text.GetAttribute("value")

Shakevg avatar Oct 14 '24 06:10 Shakevg

@nishantworah possibly text.Text will work too.

liljohnak avatar Oct 15 '24 07:10 liljohnak

nishantworah Try text.GetAttribute("value")

@Shakevg i tried text.getAttribute("value"). Didnt work

nishantworah avatar Oct 17 '24 21:10 nishantworah