无法连接到 selenium chrome 独立驱动程序

问题描述

登录—— × “before all” 钩子:codeceptjs.beforeSuite 用于在 6432 毫秒内“测试某些东西” 类型错误:无法将未定义或空值转换为对象

-- 失败:

  1. 登录 “before all”钩子:codeceptjs.beforeSuite 用于“test something”: 无法将 undefined 或 null 转换为对象 在 Function.values() 在 SeleniumStandaloneLauncher.onPrepare (node_modules@wdio\selenium-standalone-service\build\launcher.js:80:22) 在异步 C:\Users\bachans\node_modules\codeceptjs\lib\plugin\wdio.js:218:11

失败 | 0 次通过,1 次失败 // 6 秒 使用 --verbose 标志运行以查看完整的 NodeJS 堆栈跟踪

解决方法

enter image description here

我发现您使用的网址存在问题。应该如图所示