Why does GetVisibleText activities fails even when validated and repaired succesfully?

I am trying to insert the records in Oracle invoice workbench
fsapmodifydoc_clip_image002

It looks like above.

I am trying to read the info which comes in the popup on this window for that I am using GetVisibleText, It fails, when it is run it states that “Get Visible Text ‘desktop pane’: Cannot find the UI element corresponding to this selector: java name=‘Invoice Workbench **(Test User)*’ role=‘internal frame’ /><java idx=‘21’ role=‘panel’ /”.

the name attribute has two * because when I am using one * it converts it into italic, Ignore that.

I repaired it, validate it successfully(green) then again runs it but it still fails.
What am I doing wrong here?

Hello @manzar_ali, the first thing that comes to mind is the the Process/activity being executed before the “Get Visible Text” activity is having issues. What activity is being performed before the “Get visible text” activity?

I am using send hotkey activity before that

Have you tried using a break point and debugging that section of the workflow to see if the send hotkey activity is actually working as expected?

Yes, it’s working, I don’t know how but its working fine now Thanks for your help @BenMar

1 Like