Hi,
I am trying to implement the automation for a wps application. But encounter an issue that I can not click the item on the popup menu whick appears after rightclick an item.
Below is my script:
wpfApp.Manager.ActiveApplication.MainWindow.Find.ByTextContent("专题列表").User.Click(MouseClickType.RightClick, 250, 77, OffsetReference.TopLeftCorner, ActionPointUnitType.Percentage, ((System.Windows.Forms.Keys)(0)));
After this step, I will click the item "添加专题" like below statement
wpfApp.Manager.ActiveApplication.MainWindow.Find.ByTextContent("添加专题").User.Click(MouseClickType.LeftDown, 70, 29, ArtOfTest.Common.OffsetReference.TopLeftCorner,ActionPointUnitType.Percentage,((System.Windows.Forms.Keys)(0)));
But it is failed. the item "添加专题" can not be clicked.
I am trying to implement the automation for a wps application. But encounter an issue that I can not click the item on the popup menu whick appears after rightclick an item.
Below is my script:
wpfApp.Manager.ActiveApplication.MainWindow.Find.ByTextContent("专题列表").User.Click(MouseClickType.RightClick, 250, 77, OffsetReference.TopLeftCorner, ActionPointUnitType.Percentage, ((System.Windows.Forms.Keys)(0)));
After this step, I will click the item "添加专题" like below statement
wpfApp.Manager.ActiveApplication.MainWindow.Find.ByTextContent("添加专题").User.Click(MouseClickType.LeftDown, 70, 29, ArtOfTest.Common.OffsetReference.TopLeftCorner,ActionPointUnitType.Percentage,((System.Windows.Forms.Keys)(0)));
But it is failed. the item "添加专题" can not be clicked.