LoginSignup
1
0

More than 3 years have passed since last update.

コマンドラインオプション付きのChromeをLaunchpadから起動する

Last updated at Posted at 2019-05-09

概要

ウェブアプリケーションのテストなどの際、通常利用するブラウザとは別にテスト用のブラウザプロセスを立ち上げる必要が生じることがある。
その際使用するChromeの起動オプションと、MacのLaunchpadからこれを呼び出すためのAutomatorの設定をまとめる。

Chromeの起動オプション

前提:

  • ${HOME}/Workspace/Google/Chrome/Default が存在する
  • localhost:8080 でプロキシツールがlistenしている
  • 脆弱性診断用途を想定
open -na "Google Chrome" --args --user-data-dir="${HOME}/Workspace/Google/Chrome/Default" --proxy-server=localhost:8080 --disable-xss-auditor

Automatorの設定

Automatorに上記コマンドを書いて /Applications に保存する。アイコンは適当に設定する。

スクリーンショット 2019-05-09 20.17.50.png

すると、Launchpadから起動できるようになる。
スクリーンショット 2019-05-09 20.21.54.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0