cgg
May 1, 2020, 8:18am
1
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.
admin
May 1, 2020, 11:08am
2
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?
cgg
May 1, 2020, 12:32pm
3
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 ?
admin
May 1, 2020, 7:59pm
5
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": ""
}
]
}
cgg
May 2, 2020, 9:56pm
6
Hello,
Thanks for the reply however it doesn’t work because: macOS: XClick on image shifted - #4 by TechSupport
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
admin
May 3, 2020, 10:25am
7
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": ""
}
]
}
cgg
May 3, 2020, 5:46pm
8
Thanks it works ! Good solution
admin
May 14, 2020, 12:01pm
9
Issue fixed with V5.6.5, thanks for reporting it!
cgg
May 21, 2020, 7:57am
10
Hello, this version is still not available for Chrome, how can I use it ?
thanks
The extension update is in a review queue