In 6.3.1 command “executeScript return window.history.back(-1);” (as well as back()) results not in “make one step - go back to previous page”, but in deeper return through the history. Execution “hangs” on the executeScript till browser goes the way back. I didn’t check, but it looks like it goes 2 times back, maybe.
6.2.8 works just fine (execution is fast and it makes only one step back in the history).
{
"Command": "executeScript",
"Target": "return window.history.back(-1);",
"Value": "",
"Description": ""
}
Chrome Version 96.0.4664.110 (Official Build) (64-bit)
admin
December 21, 2021, 12:33pm
2
Hi, all works fine for me, see here:
{
"Name": "back",
"CreationDate": "2021-12-21",
"Commands": [
{
"Command": "open",
"Target": "https://ui.vision/",
"Value": "",
"Description": ""
},
{
"Command": "clickAndWait",
"Target": "linkText=desktop UI automation",
"Value": "",
"Description": ""
},
{
"Command": "clickAndWait",
"Target": "linkText=screen scraping with OCR",
"Value": "",
"Description": ""
},
{
"Command": "clickAndWait",
"Target": "linkText=automated UI test commands",
"Value": "",
"Description": ""
},
{
"Command": "clickAndWait",
"Target": "linkText=XClick/XMove",
"Value": "",
"Description": ""
},
{
"Command": "pause",
"Target": "1000",
"Value": "Pause so see on what page we are now",
"Description": ""
},
{
"Command": "executeScript",
"Target": "return window.history.back(-1);",
"Value": "",
"Description": ""
},
{
"Command": "echo",
"Target": "done!",
"Value": "green",
"Description": ""
},
{
"Command": "",
"Target": "",
"Value": "",
"Description": ""
}
]
}
1 Like
ulrich
August 8, 2025, 9:50am
3
I can confirm, works fine for me, just used it here .