Lost background heart beat when running command

Hello,
When I try to fill a textarea input in an online form via the “type” command the script goes wrong after a while.
What is strange is that the textarea has been filled … is this normal?

This bug occurs on macOS and Windows 10 under Chrome.
Here are some screenshots to see the errors.

Thank you in advance for your help.
chrome-version

Does the macro always stop with this error, or “only” sometimes?

This is certainly not normal! Something prevents UIvision from talking to the page… but what?

It always stop here. But this appears only when I fill in a textarea (with text) not very long, less than 2500 caracters.
Is there maybe a limit ?

I confirmed this issue. It happens when the text is very long. => We will be working on a fix for this.

Workaround: Store the text in the !clipboard variable and then CTRL+V paste it into the box with XClick (to set focus) and then XTYPE. This works:

{
  "Name": "Text",
  "CreationDate": "2020-5-1",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://ocr.space/contact",
      "Value": ""
    },
    {
      "Command": "type",
      "Target": "id=Subject",
      "Value": "TEST"
    },
    {
      "Command": "store",
      "Target": "Test String...VERY LOOOOONG",
      "Value": "!clipboard"
    },
    {
      "Command": "XClick",
      "Target": "id=Message",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_CTRL+KEY_V}",
      "Value": ""
    }
  ]
}

Hello,

Thanks for the reply however it doesn’t work because: macOS: XClick on image shifted
As I mentioned in a previous ticket the XClick doesn’t work well in “Browser Mode” and if I try your advice with it with “Desktop Mode” it says:
[error] Locator is not support in desktop mode
As said here: XClick Locator is not support in desktop mode

If you have other solutions … or workaround ?
Thanks

Use bringBrowserToForeground plus normal CLICK instead of XCLICK.

CLICK sets the focus to the text box as well if the browser is in the foreground, thus the need for bringBrowserToForeground ! So this case is different from macOS: XClick on image shifted since you do not need a precise mouse click somewhere, the goal of XClick was only to set the focus in the right text box).

This script works without XClick, it only has XType CTRL+V:

{
  "Name": "string",
  "CreationDate": "2020-5-3",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://ocr.space/contact",
      "Value": ""
    },
    {
      "Command": "type",
      "Target": "id=Subject",
      "Value": "TEST"
    },
    {
      "Command": "store",
      "Target": "Test String...VERY LOOOOONG",
      "Value": "!clipboard"
    },
    {
      "Command": "bringBrowserToForeground",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "click",
      "Target": "id=Message",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_CTRL+KEY_V}",
      "Value": ""
    }
  ]
}

Thanks it works ! Good solution

Issue fixed with V5.6.5, thanks for reporting it!

Hello, this version is still not available for Chrome, how can I use it ?
thanks

The extension update is in a review queue