-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ECMAScript 6 Template Literals #1662
Comments
Hi Peter, The stored variables in Selenium existed way before ES6 and as far as I know are actively being used in tests. Changing the way it works, while very nice to have, would lead to test breakages. Also remember that stored variables are a bit separate from variables created by a web page loaded JavaScript to avoid name clashes. So this one I am afraid would be won't fix.
|
Samit, As demonstrated in the above example, and in the referenced source code that shows an implementation of this change, this would only affect Selenese parameters that contain I doubt that many (if any) existing real world test cases would have that - since back apostrophe is highly uncomon. Hence I suggest to re-consider this ticket for the benefit of more flexibility. (Side note: I know the difference b/w Selenese stored vars and JS vars. The above example depends on that difference.) |
Selenium IDE development has been discontinued. No more new features and no bug fixes. From Firefox 55 onwards, Selenium IDE will no longer work [1]. The last supported version is Firefox ESR 52. Yes, we've started a project to develop a new tool that should replace Selenium IDE. Follow #4406 for the progress. Sorry this issue has not beed properly and timely addressed, and thank you for submission! [1] https://seleniumhq.wordpress.com/2017/08/09/firefox-55-and-selenium-ide/ |
With Selenium IDE 2.9.1 and current Firefox (44),
in Selenese command parameters (target or value) should evaluate javascript expression as per ECMAScript 6 template literals. Hence, within template literals
Selenium shouldn't replace ${...} with values of any stored variables.
Expected behavior
--> Hello John.
Actual Behavior
--> Hello Max.
Fix, related Selenese docs and ES6 specification
Modify Selenium.prototype.replaceVariables() as per its override in https://github.com/SeLite/SelBlocksGlobal/blob/master/sel-blocks-fx_xpi/chrome/content/extensions/selblocks.js.
The text was updated successfully, but these errors were encountered: