【发布时间】:2011-08-05 05:42:42
【问题描述】:
我正在用 C#.Net 编写 Selenium 测试脚本,但一直遇到这个异常 -
ERROR: Threw an exception: return not in function
这是我抛出错误的代码行 -
string code = selenium.GetEval(
"var win = this.browserbot.getUserWindow(); "+
"return win.editAreaLoader.GetValue(win.loadedCodeEditorID);"
);
谁能建议为什么会出现异常以及从 GetValue javascript 函数获取返回值的最佳方法是什么?
谢谢,
萨尔塔克
【问题讨论】:
标签: c# javascript exception selenium