5

我正在使用Vividus工具进行 Web UI 测试它似乎无法检测到已安装Chrome的正确版本;我有 Chrome 版本 83.0.4103.61 和 io.github.bonigarcia.wdm.WebDriverManager 报告检测到版本 81,结果测试没有开始。

日志

io.github.bonigarcia.wdm.WebDriverManager - Using chromedriver 81.0.xxxxx.xx (since Chrome 81 is installed in your machine)
2020-05-27 17:20:25,179 [batch-1-thread-1] INFO  org.vividus.bdd.log.LoggingStoryReporter - Given I am on the main application page (FAILED)
(org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 81
Build info: version: '4.0.0-alpha-1', revision: 'd1d3728cae', time: '2019-04-24T13:42:21'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '13'
Driver info: driver.version: ChromeDriver
remote stacktrace: Backtrace:
    Ordinal0 [0x00C75E93+2449043]
    Ordinal0 [0x00BA8281+1606273]
    Ordinal0 [0x00A9F889+522377]
    Ordinal0 [0x00A305F3+67059]
    Ordinal0 [0x00A2CD92+52626]
    Ordinal0 [0x00A4C127+180519]
    Ordinal0 [0x00A4BF2D+180013]
    Ordinal0 [0x00A49E5B+171611]
    Ordinal0 [0x00A31DD8+73176]
    Ordinal0 [0x00A32E50+77392]
    Ordinal0 [0x00A32DE9+77289]
    Ordinal0 [0x00BBD7F7+1693687]
    GetHandleVerifier [0x00D14576+522742]
    GetHandleVerifier [0x00D142B4+522036]
    GetHandleVerifier [0x00D29587+608775]
    GetHandleVerifier [0x00D14DE6+524902]
    Ordinal0 [0x00BB5BDC+1661916]
    Ordinal0 [0x00BBF15B+1700187]
    Ordinal0 [0x00BBF2C3+1700547]
    Ordinal0 [0x00BD5135+1790261]
    BaseThreadInitThunk [0x76446359+25]
    RtlGetAppContainerNamedObjectPath [0x77027B74+228]
    RtlGetAppContainerNamedObjectPath [0x77027B44+180]
)
4

1 回答 1

7
  • 确保您使用 Vividus 0.2.3(它包括支持 Chrome 83 的 WebDriverManager)
  • 检查您是否没有运行 Chrome 浏览器的旧实例 (v81)
  • 尝试清理 WDM 分辨率缓存:$HOME/.m2/repository/webdriver/resolution.properties

类似的 WDM 问题:

于 2020-05-27T15:43:23.270 回答