microsoft / WinAppDriver

Windows Application Driver
MIT License
3.66k stars 1.4k forks source link

getPageSource() doesnot capture all window elements. NoSuchElement exception. #605

Open umadevisk89 opened 5 years ago

umadevisk89 commented 5 years ago

Hi,

I am working on automating windows based Classic .Net Desktop application using WinAppDriver.

.getPageSource() is not displaying all the elements.

Attaching the screenshot from inspect.exe. image

Below is the pageSource:

<?xml version="1.0" encoding="UTF-8"?>

I am unable to identify the elements inside Window.

In PageSource only the Window and Title Bar is displayed. All other elements inside the Window are missing.

image

PageSource:

<?xml version="1.0" encoding="UTF-8"?>

Other elements such as TabControl etc are not identified. Any help appreciated.

hassanuz commented 5 years ago

Hi @umadevisk89,

Can you try sharing the tool/application (or tell us where we can download it) so we can repro this?

Also an updated screenshot of Inspect.exe focused on the right window (right now it is focused on the snipping tool) would help as well!

Thanks

umadevisk89 commented 5 years ago

Hi @hassanuz ,

Can you share your mail id so that I can share the app?

Thanks

hassanuz commented 5 years ago

Yes - please do reach out to me at hassan.uraizee@microsoft.com

umadevisk89 commented 5 years ago

Thanks. Shared the file. Please have a look into it.

bvglooks commented 5 years ago

I'm having trouble similar to the mentioned problem. I am using WinAppdriver to automate our custom application. The application is launched, i am able to login by entering username and password and clicking login button. However after loggin in, another window opens up, where in i cannot perform action on any of the controls. I am using AutomationId to identify the control, however it says "no such element found". session.PageSource does not contain the newer window objects. However the window handle is correct

Coffee-Java-Beans commented 5 years ago

I have a similar problem; I can see the app I'm trying to automate in inspect.exe, but if I try to use FindElementByxxx I get "no such element found", and if I dump Root's PageSource, I can see all the other running apps, but not this one. It is a proprietary app with a complicated setup, so I can't upload a sample setup, but I can upload images of the inspect window and the PageSource xml if that would help.

tomjackman commented 3 years ago

Seeing the same issue, did anyone ever find a solution?

VitorJeremias commented 3 years ago

I'm also having this problem. Any updates on this issue?

bwomsm1 commented 2 years ago

Did anyone solve this issue? I am not getting the screen elements of the presented screen