Unreliable type into activity

Hi, I have a type into activity that should write a name into a field. Sometimes it does well and sometimes it only writes part of the name. I also tried simulate type and send window activity but both didn’t work. Any idea how to make it more reliable? Thanks

@Jizh,

Give some delay before type Into activity and also you can try with Set Text activity.

1 Like

Hi @Jizh

To add to what @lakshman said, try adding a click activity to click on the text box
after the delay and then the type into activity

1 Like

Hi,

Try this way:

send the value to Clipboard with ‘Set To Clipboard’ then click the input box and send hotkey Ctrl + v

Thanks,
Aisling

1 Like

Thank you, I will try that.
@aisling.bai I never heard of that approach, thanks.

Hi @Jizh,

Good…!

But I have a small doubt with the name that you enter. I would like to know the source of that name, where it comes from… because type into activity works fine in most of the situation as you mention taking simulate type and send window activity, again as you mentioned.

And it Type Into Activity won’t fail to type when you use that activity with send window message or simulate type checked, If the page runs faster or comes slowly, use on element appear or on element vanish or wait image appear or wait image vanish activities instead of Delay activity, Because it is advisable to avoid Delay activity if you can make use of above mentioned activities. To other extent, if the page doesn’t have any image or element that you can select like citrix, then make use of Delay activity.

So Kindly provide us with this information like what is the source of that name, if you feel that above suggestion doesn’t come under your issue

Cheers…!

1 Like

@Palaniyappan
You are right, I don’t get why it’s unreliable. The names are in this test case hard coded, so the problem can only be with writing. E.g. chr(34)+“Müller Michael”+chr(34)+" OR "+chr(34)+“Anderson James”+chr(34)
Selector:
<wnd app='cmi.client.main.exe' ctrlname='MainForm' />
<wnd ctrlname='uiPanelGroupNavigator' />
<wnd ctrlname='Search' />
<ctrl name='Datenbereich' role='grouping' />
<ctrl name='Knoten6' role='outline item' />
<ctrl name='treeListColumnUserInput row 6' role='cell' />

1 Like

Hi @Jizh,

Alright, may i know why do you use chr(34) with the string, as it implies quotes ("). Is that what are you entering to a cell…?

The input field accepts OR-commands to search for multiple persons. It is what I am entering in the cell.

@Jizh,

If you dont mind, can i have a look at the xaml file…or even a image of the properties of type into activity

@Palaniyappan
Thanks a lot for your help :slight_smile: The robot first opens the programs Notes and Axioma, then it searches for specific tasks in Axioma that it will later convert into meetings in Notes. The problems occur when the robot fills out the form to search for tasks. The dropdown (nr. 1) is also tricky as I have to use the down arrows and " " to confirm the points. For the type into I now use the method aisling.bai described (with copy to clipboard and then paste). This is a bit more reliable. I think it is like the program sometimes loads GUI elements at a different speed or something else that causes the robot to lose focus. I can share a few pictures:



Hi @Jizh,

Then kindly use on element appear, before typing to the field or use DelayBetweenKeys in type into activity that will add delay while typing each character in the string

Cheers…!

1 Like

The thing is that the element already appeared and it loses focus while typing. It’s not that the first part of the word(s) is missing, it’s the second part that gets lost.

1 Like

@Jizh,

Superb…! you are almost done…!

Kindly use DelayMS property in Type into which Delay time (in milliseconds) after executing the activity. This would work…

Cheerss…!

1 Like

Hello! I faced a similar problem, I solved like that:

  1. type Into your data
  2. Click the box and then send hot key Ctrl +A to select all your text.
  3. Copy Select text and store the output in a string.
  4. Compare that string with your input if are the same then Continue. If not back step 1.

cheers,

3 Likes

@carmen That’s a good workaround.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.