Steps:
1.Open the microsoft word document [Office19_W_006_PCL6-E_A4LCp17EN.docx]
2.In Microsoft Word Document Window, Click File Tab.
Here, I used Microsoft Uiautomation API below
Step2.1. Click File Tab by Invoke() ->Exception Occured, Goto Step2.2
Step2.2. Click File Tab by Select() ->Exception Occured, Goto Step2.3
Step2.3. Click File Tab by Toggle() ->Exception Occured, Goto powershell Error
3.Powershell Error:
Question:
Is there something wrong with the document I used?
or Is there something wrong with the Microsoft Uiautomation API I used?
When I used other .docx document to test, exception above does not occur.
When I delete some data like this, the powershell script will be run OK.
Comments:
Microsoft Word document's File Tab UI infomation got by inspect.exe.