microsoft / WinAppDriver

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

Getting WAD Working with Adobe Acrobat Reader DC #1433

Open Srujith-Ravichandran opened 3 years ago

Srujith-Ravichandran commented 3 years ago

Description: My requirement is to click a button in a pdf by opening it with Acrobat Reader DC, I'm able to load the pdf file using WAD but unable to click the button as the inspector (windows inspect tool) tool is unable to identify the element and it is only able to inspect to entire pdf.

Kindly suggest a way to get around this

anunay1 commented 3 years ago

if inspect.exe does not show the elements WAD will not work.

liljohnak commented 3 years ago

Our application has two reasons controls do not show up:

  1. CEF controls, which we are using chromedriver to access.
  2. Microsoft optimized controls are sometimes not added to the visual tree. We needed to put in a bit of code to force them to show up.

We have Adobe Illustrator Addin we wanted to test, but a lot of there controls are missing.

Srujith-Ravichandran commented 3 years ago

@liljohnak Thank You. I have somehow figured a way to work around with WAD using some of the selenium actions. It's not up to the mark but still, it works fine.

But now I'm facing an issue where the inspector is able to inspect the elements but the driver is unable to identify the active window (i.e, its dialogue box) while trying to save the document.

Note: The issue is observed in Adobe Reader DC.

image