Victor Sigler
Victor Sigler

Reputation: 23449

Watin eval issue

I'm trying to use the Eval() function of Watin in the following way:

ie.DomContainer.Eval("$(\"select[gwtdebugid='signup-flow-choose-timezones']\")");

I' using the scape character by it gave me the following error:

ReferenceError: '$' is not defined.

What is the correct way of formatting this string?

Upvotes: 1

Views: 216

Answers (1)

Hamlet Hakobyan
Hamlet Hakobyan

Reputation: 33381

You have missed the closing bracket and quotes.

ie.DomContainer.Eval("$(\"select[gwtdebugid='signup-flow-choose-timezones']\")");

Upvotes: 4

Related Questions