WebSpec CSS Locator?

42 views
Skip to first unread message

pcleary00

unread,
Sep 16, 2011, 6:12:31 PM9/16/11
to watij
I am looking at moving from Selenium to Watij.

What is the suitable way to find an element by css locator in Watij?
Is there an example anywhere?

pcleary00

unread,
Sep 26, 2011, 2:51:04 PM9/26/11
to watij
FYI, answered this myself as well.

Use jquery to find your elements, you can do most things there.

Look at jquery selectors to get the syntax you want.

*most* standard CSS selectors are also supported by jquery.

To use a jquery selector, run spec.jquery instead of spec.find
Reply all
Reply to author
Forward
0 new messages