WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

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

Open umadevisk89 opened this issue 6 years ago • 9 comments

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:

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:

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

umadevisk89 avatar Feb 18 '19 10:02 umadevisk89

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

hassanuz avatar Feb 19 '19 23:02 hassanuz

Hi @hassanuz ,

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

Thanks

umadevisk89 avatar Feb 20 '19 05:02 umadevisk89

Yes - please do reach out to me at [email protected]

hassanuz avatar Feb 20 '19 06:02 hassanuz

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

umadevisk89 avatar Feb 20 '19 07:02 umadevisk89

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

bvglooks avatar Mar 06 '19 19:03 bvglooks

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.

Coffee-Java-Beans avatar Apr 11 '19 01:04 Coffee-Java-Beans

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

tomjackman avatar Jun 17 '21 11:06 tomjackman

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

VitorJeremias avatar Aug 20 '21 14:08 VitorJeremias

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

bwomsm1 avatar Sep 22 '22 05:09 bwomsm1