I am trying to use selenium.getEval() to get all of the elements with a certain name. How do I do it?
+1
A:
It doesn't work like that. getEval() returns a string representation of whatever JavaScript is executed. You can't return IHtmlElement objects or whatever and expect to manipulate them. You can convert them to JSON, however, if that's what you want. You'll want to call your getElementsByTagName() on the window.document object to ensure you're querying the browser under test and not the control browser.
nirvdrum
2010-08-23 02:21:59