在控制台中执行e2e测试时,出现以下错误,好像chromedriver没有更新。在讨论有关chrome版本落后的类似问题时,在我看来,chrome稳定版本正在按预期方式下载(76.0.3809.100)。但是被量角器的webmanager驱动程序拉出的chromedriver版本停留在2.46中。
我尝试将chromedriver从2.46手动更新为76.0.3809.12,但在执行过程中仍回落至2.46。
#!/bin/bash
set -e -u -x
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
apt-get update && apt-get install -y google-chrome-stable
cd git-platformUI/ui
npm install
npm set progress=false && npm config set depth 0 && npm cache clean --force
$(npm bin)/ng e2e --configuration=$CONFIG
Run Code Online (Sandbox Code Playgroud)
[07:33:13] E /启动器-未创建会话:Chrome版本必须介于71和75之间(驱动程序信息:chromedriver = 2.46.628388(4a34a70827ac54148e092aafb70504c4ea7ae926),平台= Linux 4.15.0-36-通用x86_64)[07 :33:13] E / launcher-SessionNotCreatedError:未创建会话:Chrome版本必须介于71和75之间(驱动程序信息:chromedriver = 2.46.628388(4a34a70827ac54148e092aafb70504c4ea7ae926),platform = Linux 4.15.0-36-generic x86_64)在parseHttpResponse(/ tmp / build / 357f536d / git-platformUI / …