Launching Kantu from Command Line on a Mac


#1

Hi

I am trying to launch a test from the command line on a Mac. It runs, but it isnt using the parameter values. Do you have a working example? This is what I’m currently trying:

mac:~ open “file:////Users/shunt/Kantu/Smoke_Test.html?direct=1&close=1&savelog=log1.txt”

Thanks

Shunt


#2

Does this command line work?

open -a "Google Chrome" "file:////Users/shunt/Kantu/Smoke_Test.html?direct=1&close=1&savelog=log1.txt"

If not: Are you using Kantu for Chrome or Firefox?


#3

No, that command has the same issue. It opens Chrome and runs the script, but the parameters are being ignored, so no log file is created and the warning popup is being displayed. I’ve also tried it with the DemoAutofill demo script and have the same issue.

I’m using Kantu for Chrome.

Shunt


#4

On a Mac, open just handles files, it doesn’t know about GET parameters. So the AppleScript approach is the way to go here:

osascript -e 'tell application "Google Chrome" to 
    open location "file:///Users/t/Kantu/demoautofill.html?direct=1&close=1&savelog=demotestlog.txt"'

Screenshots:
(1) In command line:

(2) In applescript:
applescript-cmd