Word Document - Check Boxes

I have a simple autoamtion that completes a form in MSWord.
The form has a series of check boxes. Which are ticked dependant on when the Queue Item Data says.

Everything works when working on local machine.

When running on the unattended bot, it fails to complete the Check Box giving the below

Blockquote* Reason: Exception message: Could not find the user-interface (UI) element for this action. Possible solutions: • Ensure application is opened and the UI element is visible on the screen at execution time • Edit the Target of the UI activity and use Validation to debug the issue. • If needed, re-indicate the element as its properties might have changed • Use “Check state” activity to check the application state before executing the action • Increase the “Delay before” value to allow time to the application to render entirely and become responsive at source: Check/Uncheck ‘Checkbox(6)’.

Do any Ui Based automations work on this machine? Have you taken a screenshot when the error occurs? Might be Word isnt configured properly and hasnt loaded up.

Yes lots, but not for word.

Strict Selector for the Check Box to Tick works like clockwork on my machine.

Ive just sat and watched it complete everything up until the check box then fails with the above error

Sounds like a simple selector issue difference between the machines. I’d validate that using UiExplorer to see if they indeed match or differ.

Just the same selector as what Im using no difference, just doesn’t make sense

1 Like

@rmorgan

  1. is the version of word same?
  2. also it would be better to work with macro or vb.net for word app rather than ui
  3. to verify can you show the activity which is failing and if any screenshot of failute and what element is failing the selector of it please

cheers

  1. Yes the version are the same
  2. Thats all well and good, im not a pure coder, so will always go the UI route. Will explore this, still doens’t explain why it works on my machine vs the VM, I even had it running on 2 other laptops just fine.
  3. Its a Click Check Box activity, nothing shows on screen

@rmorgan

Can you show the selector please

also if you have studio on which machine its failing try to open and highlight

cheers

Gone the code route whihc is working on the VM

1 Like

@rmorgan

Awesome. Thats always best. And now with Gen AI its doable too. :smiley:

Happy Automation