No ipc available for the playing commands?


Any information about this error?

Line 115: Error #170: No ipc available for the playing commands tab


This error means Ui.Vision somehow lost the connection to the browser tab.

But in your case the solution seems easy: Do not use executeScript unless you need website access for the JS script you want to run, e. g. for calling a web api. Otherwise executeScript_Sandbox is the better/faster option, as it needs no website to run in.

If you make the switch to executeScript_Sandbox, note that you need to replace .includes with .indexOf, since executeScript_Sandbox uses ES5-level Javascript.