无法使用selblock运行selenium脚本

时间:2015-05-08 08:02:04

标签: json selenium selenium-ide

我正在使用selenium ide和'selblock'插件(v 2.1) 我在selenium ide中尝试了forJson命令。

以下是selenium ide的代码片段:

<tr>
    <td>forJson</td>
    <td>file://login.json</td>
    <td></td>
</tr>
<tr>
    <td>open</td>
    <td>http://login.realvolvebeta.com/users/sign_in</td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=user_email</td>
    <td>${id}</td>
</tr>
<tr>
    <td>type</td>
    <td>id=user_password</td>
    <td>${password}</td>
</tr>
<tr>
    <td>endForJson</td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>name=commit</td>
    <td></td>
</tr>
<tr>
    <td></td>
    <td></td>
    <td></td>
</tr>

</tbody></table>

我收到以下错误:

[error] Unexpected Exception: SyntaxError: missing ; before statement.
stack ->
@chrome://selblocksseleexten/content/extensions/selblocks.js?1431067892568:1486
@chrome://selblocksseleexten/content/extensions/data-reader.js?1431067892570:118
@chrome://selblocksseleexten/content/extensions/selblocks.js?1431067892568:1156
enterLoop@chrome://selblocksseleexten/content/extensions/selblocks.js?1431067892568:1209
@chrome://selblocksseleexten/content/extensions/selblocks.js?1431067892568:1165
fnBind/retval@chrome://selenium-ide/content/selenium-core/scripts/htmlutils.js:60
ActionHandler.prototype.execute@chrome://selenium-ide/content/selenium-core/scripts/selenium-commandhandlers.js:314
._executeCurrentCommand@chrome://selenium-ide/content/selenium-runner.js:306
TestLoop.prototype.resume@chrome://selenium-ide/content/selenium-core/scripts/selenium-executionloop.js:78
fnBind/retval@chrome://selenium-ide/content/selenium-core/scripts/htmlutils.js:60
, fileName ->
chrome://selblocksseleexten/content/extensions/selblocks.js?1431067892568,
lineNumber -> 1486, columnNumber -> 22

0 个答案:

没有答案