【发布时间】:2014-06-10 12:54:19
【问题描述】:
我正在我的系统中运行某人编写的 selenium 测试用例。它显示了一些错误,例如
> [error] Actual value 'null' did not match '[object Object]'
> [error] Threw an exception: this.browserbot.getUserWindow().map is undefined
> [error] Threw an exception: this.browserbot.getUserWindow().map is undefined
是我正在使用的 selenium ide 版本还是其他版本的问题?我正在使用 Selenium 1.6.0
【问题讨论】:
-
如果你分享你的脚本会很有帮助。
-
open /projectName assertEval this.browserbot.getUserWindow().map [object Object] -
以上脚本是针对第一个错误
-
这是问题,因为实际值与预期值不匹配。这个问题不是因为硒版本
-
this.browserbot.getUserWindow().map 为您的案例返回 null。它应该返回 [object Object] 以成功运行脚本..如果可能共享项目名称..
标签: selenium