Some help here, please! Error Ignore


#1

Hey!
I’m new here and need some help for this amazing tool.

I need to ignore the error if the “Target” of the URL doesn’t exist. In this extract of the macro, if the “link=CSV” doesn’t exist, It need to pass the next command:

In this example, the macro open the url, go to the target “CSV” and it download the file. There’s 2 cases:

{
  "Command": "open",
  "Target": "http://store.intcomex.com/es-XCL/Products/ByCategory/cac.cable?r=True",
  "Value": ""
},
{
  "Command": "waitForPageToLoad",
  "Target": "",
  "Value": "1500ms"
},
{
  "Command": "click",
  "Target": "link=CSV",
  "Value": ""
},

{
“Command”: “open”,
“Target”: “http://store.intcomex.com/es-XCL/Products/ByCategory/cac.pad?r=True”,
“Value”: “”
},
{
“Command”: “waitForPageToLoad”,
“Target”: “”,
“Value”: “1500ms”
},
{
“Command”: “click”,
“Target”: “link=CSV”,
“Value”: “”
},

I really appreciate your help

Thanks!


#2

You are already on the right track with !errorignore. To make it work add
store | true | !errorignore
before this command, and
store | false | !errorignore
after it to switch back to normal mode (if needed).

If you want, you can also reduce the time that Kantu waits for the link to appear. For this use !timeout_wait:

store | 5 | !timeout_wait

(Now Kantu waits only 5 seconds)


#3

Thank you very much for your time!

I will try this in a moment, but first, sometimes the CSV link doesn’t download nothing and I think this is for the little time this have to the browser get the file.

What do you think about this?

Thanks!


#4

This question I don’t understand… a website link or a screenshot would help.


#5

You can change download file time in kantu options