Chris Jaynes
unread,Mar 24, 2011, 11:39:27 AM3/24/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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