click something other than a link or a button?

1,438 views
Skip to first unread message

Avi Deitcher

unread,
Jan 25, 2012, 4:56:23 AM1/25/12
to zombie.js
Does zombie have a mechanism for clicking something other than a link
or a button (or input element)? One most Web sites, you can click on
other things - a span, div, etc. - and the browser will still generate
a click event. Of course, if it isn't a standard element, you need a
handler, but most modern Web apps do so.

How would I click on a div in zombie?

Avi Deitcher

unread,
Jan 25, 2012, 5:41:28 AM1/25/12
to zombie.js
Update: I tried using browser.fire(). It didn't work. The click event
never traveled to my handlers. In the end, since I have jQuery on the
page, I used $("selector").click(), but would have been easier through
zombie.

Assaf Arkin

unread,
Jan 25, 2012, 1:32:58 PM1/25/12
to zomb...@googlegroups.com
clickLink is a shortcut for finding links and calling fire("click", callback) on them.
Reply all
Reply to author
Forward
0 new messages