WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Unable to get Value of an element using .getAttribute("Value.Value")

Open angad16 opened this issue 6 years ago • 4 comments

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 ?

angad16 avatar Feb 03 '20 06:02 angad16

Unfortunately most of the get attributes does not work as of now.

@hassanuz Can you please consider it as a bug.

anunay1 avatar Feb 04 '20 03:02 anunay1

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 avatar Feb 04 '20 05:02 angad16

@angad16 What type of element it is ? I mean whether it is textbox, dropdown ? Try with element.GetAtribute("Text").

VijayHugar avatar Feb 24 '20 08:02 VijayHugar

Hi, i am using this app. even i am facing the same issue.. unable to capture value.value or legacyaccessible.value

pavannarrasdet avatar Dec 23 '20 05:12 pavannarrasdet