Script unexpectedly stopped working


#1

I have made a script that helped me a lot through my every day work, but it just stopped working today for no obvious reason, the site did not change, the script is the same.

I tried to change click to xclick but it doesnt seem to function either. Does anybody have idea why this is happening ? (code bellow)

Blockquote
{
“Name”: “Jao - Sve zemlje”,
“CreationDate”: “2019-5-10”,
“Commands”: [
{
“Command”: “open”,
“Target”: “http://www.jao.eu/marketdata/export/overview”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id=“pool”]/div[1]/div[1]/select",
“Value”: “”
},
{
“Command”: “select”,
“Target”: "xpath=//
[@id=“pool”]/div[1]/div[1]/select”,
“Value”: “label=Daily”
},
{
“Command”: “XClick”,
“Target”: “xpath=//[@id=“pool”]/div[1]/div[1]/select",
“Value”: “”
},
{
“Command”: “XClick”,
“Target”: "xpath=//
[@id=“pool”]/div[1]/div[8]/div/div[2]”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[2]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[2]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[4]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[4]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[17]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[17]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[19]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[19]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[27]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[27]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[53]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[53]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[10]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[10]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[56]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[56]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[51]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[51]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[57]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[57]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[54]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[54]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[81]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[81]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[52]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[52]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[64]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[64]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[12]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[12]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[80]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[80]/td[1]/input”,
“Value”: “”
},
{
“Command”: “XClick”,
“Target”: “//[@id=“pool”]/div[1]/div[6]/input",
“Value”: “”
},
{
“Command”: “storeEval”,
“Target”: “var d= new Date(); var m=((d.getMonth()+1)<10)?‘0’+(d.getMonth()+1):(d.getMonth()+1); d.getFullYear()+”/"+m+"/"+(d.getDate()+1);",
“Value”: “mydate”
},
{
“Command”: “type”,
“Target”: "//
[@id=“pool”]/div[1]/div[6]/input”,
“Value”: “{mydate}" }, { "Command": "XClick", "Target": "//*[@id=\"pool\"]/div[1]/div[7]/input", "Value": "" }, { "Command": "type", "Target": "//*[@id=\"pool\"]/div[1]/div[7]/input", "Value": "{mydate}”
},
{
“Command”: “XClick”,
“Target”: “//[@id=“pool”]/div[1]/div[7]/button",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "//
[@id=“pool”]/div[1]/div[7]/input”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “//[@id=“pool”]/div[1]/div[6]/input",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "//
[@id=“master-page-content”]/div[12]”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “//[@id=“pool”]/div[1]/div[6]/input",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "//
[@id=“pool”]/div[1]/div[7]/input”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “//[@id=“pool”]/div[1]/div[7]/input",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "//
[@id=“master-page-content”]/div[12]”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “//[@id=“pool”]/div[1]/div[12]",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "//
[@id=“pool”]/div[1]/div[6]/input”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “name=SearchAuctionId”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “//[@id=“pool”]/div[1]/div[6]/input",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "//
[@id=“pool”]/div[1]/div[5]/div/div”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “//[@id=“pool”]/div[1]/div[5]/div/div",
“Value”: “”
},
{
“Command”: “XClick”,
“Target”: "//
[@id=“pool”]/div[1]/div[11]/div/div”,
“Value”: “”
},
{
“Command”: “XClick”,
“Target”: “//[@id=“pool”]/div[4]/div[2]/div/div",
“Value”: “”
},
{
“Command”: “open”,
“Target”: “http://www.jao.eu/marketdata/export/overview”,
“Value”: “”
},
{
“Command”: “open”,
“Target”: “http://www.jao.eu/marketdata/export/overview”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: "xpath=//
[@id=“pool”]/div[1]/div[8]/div/div[2]”,
“Value”: “”
},
{
“Command”: “open”,
“Target”: “http://www.jao.eu/marketdata/export/overview”,
“Value”: “”
},
{
“Command”: “open”,
“Target”: “http://www.jao.eu/marketdata/export/overview”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//*[@id=“pool”]/div[1]/div[8]/div/div[2]”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[69]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “click”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[69]/td[1]/input”,
“Value”: “”
}
]
}

Also, I have another code that scrapes some information from several sites. It has quiet a few loops and nearly every time it just randomly freezes along executing and then I have to start it all over again. Any ideas why this is happening?

Blockquote
{
“Name”: “Jao - Sve zemlje”,
“CreationDate”: “2019-5-10”,
“Commands”: [
{
“Command”: “open”,
“Target”: “http://www.jao.eu/marketdata/export/overview”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id=“pool”]/div[1]/div[1]/select",
“Value”: “”
},
{
“Command”: “select”,
“Target”: "xpath=//
[@id=“pool”]/div[1]/div[1]/select”,
“Value”: “label=Daily”
},
{
“Command”: “XClick”,
“Target”: “xpath=//[@id=“pool”]/div[1]/div[1]/select",
“Value”: “”
},
{
“Command”: “XClick”,
“Target”: "xpath=//
[@id=“pool”]/div[1]/div[8]/div/div[2]”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[2]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[2]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[4]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[4]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[17]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[17]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[19]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[19]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[27]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[27]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[53]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[53]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[10]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[10]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[56]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[56]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[51]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[51]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[57]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[57]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[54]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[54]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[81]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[81]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[52]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[52]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[64]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[64]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[12]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[12]/td[1]/input”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[80]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “XClick”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[80]/td[1]/input”,
“Value”: “”
},
{
“Command”: “XClick”,
“Target”: “//[@id=“pool”]/div[1]/div[6]/input",
“Value”: “”
},
{
“Command”: “storeEval”,
“Target”: “var d= new Date(); var m=((d.getMonth()+1)<10)?‘0’+(d.getMonth()+1):(d.getMonth()+1); d.getFullYear()+”/"+m+"/"+(d.getDate()+1);",
“Value”: “mydate”
},
{
“Command”: “type”,
“Target”: "//
[@id=“pool”]/div[1]/div[6]/input”,
“Value”: “{mydate}" }, { "Command": "XClick", "Target": "//*[@id=\"pool\"]/div[1]/div[7]/input", "Value": "" }, { "Command": "type", "Target": "//*[@id=\"pool\"]/div[1]/div[7]/input", "Value": "{mydate}”
},
{
“Command”: “XClick”,
“Target”: “//[@id=“pool”]/div[1]/div[7]/button",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "//
[@id=“pool”]/div[1]/div[7]/input”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “//[@id=“pool”]/div[1]/div[6]/input",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "//
[@id=“master-page-content”]/div[12]”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “//[@id=“pool”]/div[1]/div[6]/input",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "//
[@id=“pool”]/div[1]/div[7]/input”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “//[@id=“pool”]/div[1]/div[7]/input",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "//
[@id=“master-page-content”]/div[12]”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “//[@id=“pool”]/div[1]/div[12]",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "//
[@id=“pool”]/div[1]/div[6]/input”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “name=SearchAuctionId”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “//[@id=“pool”]/div[1]/div[6]/input",
“Value”: “”
},
{
“Command”: “click”,
“Target”: "//
[@id=“pool”]/div[1]/div[5]/div/div”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “//[@id=“pool”]/div[1]/div[5]/div/div",
“Value”: “”
},
{
“Command”: “XClick”,
“Target”: "//
[@id=“pool”]/div[1]/div[11]/div/div”,
“Value”: “”
},
{
“Command”: “XClick”,
“Target”: “//[@id=“pool”]/div[4]/div[2]/div/div",
“Value”: “”
},
{
“Command”: “open”,
“Target”: “http://www.jao.eu/marketdata/export/overview”,
“Value”: “”
},
{
“Command”: “open”,
“Target”: “http://www.jao.eu/marketdata/export/overview”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: "xpath=//
[@id=“pool”]/div[1]/div[8]/div/div[2]”,
“Value”: “”
},
{
“Command”: “open”,
“Target”: “http://www.jao.eu/marketdata/export/overview”,
“Value”: “”
},
{
“Command”: “open”,
“Target”: “http://www.jao.eu/marketdata/export/overview”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//*[@id=“pool”]/div[1]/div[8]/div/div[2]”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[69]/td[1]/input”,
“Value”: “on”
},
{
“Command”: “click”,
“Target”: “xpath=/html/body/div[6]/table/tbody/tr[69]/td[1]/input”,
“Value”: “”
}
]
}


#2

This code is too confusing, it realizes a code of 10-15 lines ordered otherwise nothing is understood.


#3

How do you mean ? I can not use loop, because I mark only particular checkboxes ( not all of them ).


#4

I’ll try to be more specific, what stopped working for me is marking borders in this site :
[http://www.jao.eu/marketdata/export/overview] (like AT-DE, AT-HU and so on…)

It worked perfectly before Friday and now even when I try to record it doesn’t seem to work. Why do you think is that ?


#5

The site you write do not show nothing i see only a blank page.


#6

This one ?

JAO

It works normally for me, it should open page like this:


#7

For me this site do not load i see blank page.

Have a geo redirect probably from my country is not possible to see it.