LearnBoost / soda

Selenium Node.JS adapter
http://labs.learnboost.com
464 stars 43 forks source link

getEval() runs in wrong window #38

Closed quangv closed 12 years ago

quangv commented 12 years ago
client.chain.session()
.open('http://google.com')
.getEval('alert("hi")')
.end();

the alert("hi") runs in the Selenium RC window, not the actual browser subject window (http://google.com)...

quangv commented 12 years ago

discovered that you can access stuff in the other window by .getEval("selenium.browserbot.getUserWindow()")