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”
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.
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/uivision/demoautofill.html?direct=1&closeBrowser=1&savelog=demotestlog.txt"'