I am writing Selenium test scripts in C#.Net and I keep bumping into this exception -
ERROR: Threw an exception: return not in function
Here is my line of code which throws the error -
string code = selenium.GetEval(
"var win = this.browserbot.getUserWindow(); "+
"return win.editAreaLoader.GetValue(win.loadedCodeEditorID);"
);
Can anyone please suggest why the exception is coming and what could be the best way to get a return value from GetValue javascript function?
Thanks,
Saarthak