WinAppDriver can't find element.

Created on 2 Jul 2019  路  3Comments  路  Source: microsoft/WinAppDriver

I'm developing a UI test program with WinAppDriver.

We use Visual Studio 2019 and WinAppDriver 1.1 version and inspect.

What I'm going to test function is Project Create With Visual Studio and our Extension Explorer.

I finished create project with WinAppDriver but WinAppDriver seems to not to find our extension explorer in visual studio 2019.

this is my code. firstLine projectName Click is not work.

code

in projectName "Site.FP_Planning1" is setting.
window

inspect also say that this element is called projectName.
inspect

below is error message.
{"status":7,"value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters."}}

Please tell me any solutions if exist.
Thank you.

ps. not our extend explorer but also solution explorer and team explorer can't found by WinAppDriver in visual studio 2019.

Help Wanted

Most helpful comment

Use UIRecorder for location elements.

All 3 comments

Use UIRecorder for location elements.

@riccione
Thank you for reply.
but I already have used UI Recorder but it doesn't work. I have try once again today but there is status 7 error.
like this..
xpatherror

I did it by another approach.

But there is problem in typing keyboard. session.KeyBoard.SendKeys is sometimes(*) return state 13 error. "unknown error","message":"An unknown error occurred in the remote end while processing the command."
This is always suffering me.

if i reboot my computer, It works... so strange.
Anyone know why?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AmitVerma4HP picture AmitVerma4HP  路  3Comments

jsa34 picture jsa34  路  3Comments

sandeepdroid picture sandeepdroid  路  3Comments

viji-123 picture viji-123  路  4Comments

SimonKirkhamCL4U picture SimonKirkhamCL4U  路  3Comments