現在の URL ( http://example.com) を変数に保存し、gotoIf コマンド (gotoIf extension.js の一部) の条件として別の文字列と比較しようとしています。
storeLocation || url
gotoIf || ${url}=="http://example.com" || label
この seleniun ide を実行すると、次のエラーがスローされます。
[error] Unexpected Exception: message -> syntax error, fileName -> chrome://selenium-ide/content/tools.js -> file:///C:/Users/David%20Cunningham/Desktop/extensions_js/extensions.js, lineNumber -> 183, stack -> eval("http://example.com==\"http://example.com\"")@:0 ("http://example.com==\"http://example.com\"","label1")@chrome://selenium-ide/content/tools.js -> file:///C:/Users/David%20Cunningham/Desktop/extensions_js/extensions.js:183 ("http://example.com==\"http://example.com\"","label1")@chrome://selenium-ide/content/selenium/scripts/htmlutils.js:60 ([object Object],[object Object])@chrome://selenium-ide/content/selenium/scripts/selenium-commandhandlers.js:310 ()@chrome://selenium-ide/content/selenium/scripts/selenium-executionloop.js:112 (6)@chrome://selenium-ide/content/selenium/scripts/selenium-executionloop.js:78 (6)@chrome://selenium-ide/content/selenium/scripts/htmlutils.js:60 , name -> SyntaxError
storeLocation は文字列を返す必要があるのに、なぜこのエラーが発生するのでしょうか?構文のどこが間違っているのでしょうか?また、このコマンドを宣言するにはどうすればよいでしょうか?