Web组件测试程序 - 未在本地查找chrome

时间:2016-07-09 03:26:09

标签: testing polymer polymer-1.0

标题说明了一切:

one@localhost ~/github/my-el $ polymer test -l chrome
step: loadPlugins
step: configure
hook: configure



Error: The following browsers were not found: chrome. (All installed browsers found: )
one@localhost ~/github/my-el $ which chrome
/usr/bin/chrome
one@localhost ~/github/my-el $ lr /usr/bin/chrome
lrwxrwxrwx 1 root root 29 Jul  8 21:25 /usr/bin/chrome -> /usr/bin/google-chrome-stable

参考https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities

https://github.com/Polymer/web-component-tester/blob/master/runner/config.ts#L127

one@localhost ~/github/my-el $ cat wct.conf.json
{
  "verbose": true,
  "plugins": {
    "local": {
      "browsers": ["chrome"],
      "browserOptions": {
        "browserName": "/usr/bin/chrome",
        "platform": "LINUX"
      }
    }
  }
}

1 个答案:

答案 0 :(得分:3)

我在这里找到了答案https://github.com/Polymer/web-component-tester/issues/222

将它放在shell中,以便度过美好时光export LAUNCHPAD_CHROME=/usr/bin/google-chrome-stable

我打算删除这篇文章,但我会留下它,以便其他寻找答案的好灵魂参考。