Skip to content

How to use Value.Value in XPath #567

Open
@jonathanw64

Description

@jonathanw64

Hi there,

I'm exploring the possibility of converting our automated tests from CUIT to use WinAppDriver and am doing some initial testing with the API to see what's possible. Currently I'm using XPath's to locate elements in our desktop application, with the help of the Inspect tool, however the XPaths fail to compile when I use //*[@Value.Value='01'] as implied by Inspect:

image

This post - #511 - suggests using the UIRecorder tool, however that only returns one possible XPath and in my case it returns a path that will always locate the first row in my table, rather than whichever row contains '01'.

Any suggestions for how to search for Value.Value would be greatly appreciated - I'm hoping I've just got a syntax error but so far I've not found a solution online.

Cheers,
Jonny

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions