Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nishantworah opened this issue Sep 13, 2024 · 3 comments

Comments

@nishantworah
Copy link

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!!!

@Shakevg
Copy link

Shakevg commented Oct 14, 2024

nishantworah Try text.GetAttribute("value")

@liljohnak
Copy link

@nishantworah possibly text.Text will work too.

@nishantworah
Copy link
Author

nishantworah Try text.GetAttribute("value")

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants