测试人社区

Mac 通过 chromedriver --remote-debugging-port=9222 命令启动却没有打开浏览器

  • 命令 chromedriver --remote-debugging-port=9222
Starting ChromeDriver 83.0.4103.39 (ccbf011cb2d2b19b506d844400483861342c20cd-refs/branch-heads/4103@{#416}) on port 9515
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
  • 环境变量配置

cat ~/.bash_profile

# chromedriver
export PATH=$PATH:/usr/local/bin

image

打开浏览器的命令要查找到chrome应用来打开并附加参数–remote-debugging-port=9222 不是打开chromedriver