I'm looking to click dialog boxes that appear in MS Word by using Apple's JXA automation tooling.
I'd like to click on the following dialog boxes:
Word detected and repaired the following errors. To view each repair...
I'd like to click Yes on the first one, and close on the second one.
For context, I'm looking to extend the docx2pdf library in order to automatically skip these dialogs when converting a file to PDF. Right now, there are some manual clicks required due to these dialogs that I would like to fully automate.
What is the JXA code that I would need to automate this task?