Using Eval in watin
I've been getting error when trying to implement this
ie.Eval("$(this).parent().removeClass("sortHelper");");
I was refering to this page :fire jQuery
and visual studio finds a syntax error.Is this the correct way fo开发者_C百科r me to declare Eval?
You can see from the syntax coloring on Stack Overflow that you are prematurely terminating the string. Change your quotes to this:
ie.Eval('$(this).parent().removeClass("sortHelper");');
See the difference?
Switch the quotes from the previous answer (single quotes are for char):
ie.Eval("$(this).parent().removeClass('sortHelper');");
精彩评论