Closed alan-morey closed 8 years ago
Hi,
This is the restriction of Selenese Runner (and Selenium WebDriver).
storedVars
is saved in Selenese Runner, and it is exchanged with a browser.
However, Selenium WebDriver API can use only "JSONizable" object at executing Javascript.
("JSONizable" object = String, Array, and Object as map)
The workaround is to use Function.toString().
Command | Target | Value |
---|---|---|
storeEval | (function(){ return { hello: (function(s) { return 'hello' + s; }).toString() } })(); | util |
storeEval | storedVars.util.hello | func |
storeEval | (${func})("world") | var0 |
echo | ${var0} |
Hi, Can I close this issue?
Yes.
On Wed, Apr 27, 2016, 15:22 Motonori IWAMURO notifications@github.com wrote:
Hi, Can I close this issue?
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/vmi/selenese-runner-java/issues/182#issuecomment-215249599
For example, the following script works with Selenium IDE
Log:
Adding similar test to VaribleTest
Fails with