Support for Selenium's GetEval or RunScript commands?

118 views
Skip to first unread message

Chris Jaynes

unread,
Mar 24, 2011, 11:39:27 AM3/24/11
to FuncUnit
Hello,

It doesn't look like the S object supports the GetEval or RunScript
commands from Selenium's core API. Was there a reason for this?

I understand that FuncUnit is supposed to mimic user actions, but,
especially when using third-party Jquery plugins that manipulate the
dom (such as jstree), it can be difficult to get FuncUnit to generate
the right events on the right elements.

I think it would be reasonable to expect developers to want to "cheat"
occasionally, and invoke a bit of Javascript as a work-around for
events that just aren't triggering properly.

This would also allow the developer to run simple Jquery commands in
the app window, which would make complex verification of lists of
elements much easier.

I understand that some of this could be done using Qunit to do more
standard unit tests, but I believe there are times when functional
tests could benefit from a "peek under the covers", so to speak...

Is this something that we could consider adding to FuncUnit?

~Chris

Justin Meyer

unread,
Mar 24, 2011, 2:09:25 PM3/24/11
to FuncUnit
If you ask on : http://forum.javascriptmvc.com/funcunit, you'll get an
answer. This forum is no longer maintained.
Reply all
Reply to author
Forward
0 new messages