Unable to get Value of an element using .getAttribute("Value.Value")
Hi , i am using WinAppDriver v1.1 (java) for desktop app automation , and i am not able to get the value of an element using Value.Value and is returning null.
Also i am not able to check whether the element is selected or not , for that i am using .getAttribute("SelectionItem.IsSelected") and it is returning 'False' every time even when the attribute is selected , though inspect.exe is showing me 'True' for "SelectionItem.IsSelected" of that element.
Can you please tell me some other way to get the value of an element ?
Unfortunately most of the get attributes does not work as of now.
@hassanuz Can you please consider it as a bug.
Hi @anunay1 , @hassanuz regarding the above mentioned issue , i was able to get the Value.Value attribute of an element , this was only possible when i was location/finding the element by its AutomationId from the inspect.exe i.e. -
driver.findElementsByAccessibilityId();
when we locate/find the element by any other locator like Name , the getAttribute("Value.Value") was always returning null.
@hassanuz i think this is a defect. Please look into it.
@angad16 What type of element it is ? I mean whether it is textbox, dropdown ? Try with element.GetAtribute("Text").
Hi, i am using this app. even i am facing the same issue.. unable to capture value.value or legacyaccessible.value