Selenium IDE - Passing a URL string variable into a conditional 'gotoIf' statement throws a Syntax e
Posted
by user318568
on Stack Overflow
See other posts from Stack Overflow
or by user318568
Published on 2010-04-16T14:46:23Z
Indexed on
2010/04/16
15:13 UTC
Read the original article
Hit count: 1020
I am trying to store the current url (http://example.com)in a variable and compare it with another string as a condition in the gotoIf command (part of the gotoIf extension.js):
storeLocation || url
gotoIf || ${url}=="http://example.com" || label
When I run this seleniun ide throws this error:
[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 should return a String so why am i getting this error, what is wrong with the syntax and how do I declare this command?
© Stack Overflow or respective owner