WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

Unable to inspect element using inspect.exe.

Open sawhneysharad opened this issue 6 years ago • 8 comments

I am writing to automate windows installer using Robot framework's "White Library". Using inspect.exe to inspect element and it is giving me error like Cannot get object from point: [Error: FromPoint: hr=0xFFFFFFFF80070005 - Access is denied.] Please help me with this and let me know if you need more information.

sawhneysharad avatar Aug 12 '19 19:08 sawhneysharad

I'd try running inspect in admin mode and see if that solves the problem (or try a different version of inspect if you have any other Windows 10 SDKs installed).

Also give UI Recorder a shot.

hassanuz avatar Aug 13 '19 00:08 hassanuz

Thanks for your reply. I can see the details in admin mode but still not able to find locators for elements like buttons and getting classname same of every button. Any suggestions?

sawhneysharad avatar Aug 13 '19 02:08 sawhneysharad

@sawhneysharad, in that case I would resort to using UI Recorder to generate the XPath for the desired element.

hassanuz avatar Aug 27 '19 19:08 hassanuz

@sawhneysharad Did you tried changing inspect mode? AFAIK it supports either MSAA or UI Automation.

How about other tools? For example:

  1. VisualUIAVerifyNative => "C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86\UIAVerify\VisualUIAVerifyNative.exe"
  2. UIRecorder - https://github.com/microsoft/WinAppDriver/tree/master/Tools/UIRecorder

danielsavi avatar Sep 17 '19 18:09 danielsavi

@sawhneysharad any luck with this so far? I am into the same problem, I have tried many different inspectors but it only shows me the Title bar(with icon,Title, minimize, maximize and close buttons) of the window. No other children are in the list. I have tried to read the page source property from C# code using winAppDriver but same, found only title bar.

sohaibjaved44 avatar Nov 23 '19 09:11 sohaibjaved44

I have also facing same issue. i have also tried with multiple inspector but it only shows me the Windows title bar. My Windows desktop application was developed by JUCE framework and C ++ code.

sagar-ind avatar Jan 10 '20 13:01 sagar-ind

@sohaibjaved44 @sawhneysharad @sagar-ind any luck on this issue. I am also facing same issue.

sanjayshukla84 avatar Jan 07 '21 22:01 sanjayshukla84

@sanjayshukla84 anu luck so far? Kinda stuck with the same issue..

vijay2249 avatar May 26 '22 06:05 vijay2249

I have also facing same issue. i have also tried with multiple inspector but it only shows me the Windows title bar. My Windows desktop application was developed by JUCE framework and C ++ code.

I had the same issue https://github.com/microsoft/WinAppDriver/issues/1789#issuecomment-1315339204 Try opening the app before you start inspect.exe It is weird and I have no idea why it did help in my case but it might be worth trying it even for you

JanTrnavskyNovanta avatar Nov 15 '22 14:11 JanTrnavskyNovanta