Click/xclick command doesn't work for uploading in loop


#1

Hey everybody,

I hope you can help me with this.
I was using this script to automate my uploading process on a german print on demand platform, but for some reason the loop doesn’t work anymore.

In the first loop everything works fine, sometimes the second loop works as well, but after that it seems as if the command for opening the window to choose the specific file is not executed correctly.
The Logs show no error.
I’m using chrome browser. If any more information needed, just let me know.
This is the relevant part of the script:

{
“Name”: “Spreadshirt.de upload test”,
“CreationDate”: “2019-2-19”,
“Commands”: [
{
“Command”: “store”,
“Target”: “FAST”,
“Value”: “!REPLAYSPEED”
},
{
“Command”: “open”,
“Target”: “https://partner.spreadshirt.de/designs”,
“Value”: “”
},
{
“Command”: “csvRead”,
“Target”: “Spreadshirtde.csv”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=upload-btn”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=design-upload-open-file-browser”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “{!COL1}{KEY_ENTER}”,
“Value”: “”
},
{
“Command”: “pause”,
“Target”: “5000”,
“Value”: “”
}
]
}

if neccesary i can provide acess to one account.
i tried different variations of commands, re-recorded the script, but nothing really helped.
thanks for any help!


#2

I faced the same issue, I had only 2 macros in my “suite” , first one was successful but the second one failed.
but from the logs i find out there is a limit of *25 commands only when using the xmodules

to confirm that, I went to the pricing page and yes there are limits for the free edition.


https://a9t9.com/kantu/x/pro

I think , now that chrome doesn’t allow file uploads , the only option is to use xtype , now I am going to purchase the “PRO1 Edition”

I am not sure if i can buy the “PRO1 Edition” and use the license in both my laptop and desktop computer . It doesn’t specify how many users…


#3

xtype didn’t solve this problem for me but you can try. i’m using my key on more than one device


#4

I am only guessing, but maybe it is a timing issue?

Test: Try to split

{
“Command”: “XType”,
“Target”: “{!COL1}{KEY_ENTER}”,
“Value”: “”
},

in two commands:

{
“Command”: “XType”,
“Target”: “{!COL1}”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “{KEY_ENTER}”,
“Value”: “”
},