n1k0/casperjs — Issue #3: casper.click problem
Author: arthurblake
Created: 2011-11-06 17:36:08+00:00
State: open

I think that there is a problem in the way that phantom.Casper.ClientUtiils.click is implemented.

I am trying to use it to click on an element that looks like this:

Login

In a regular browser, the link is really used just for styling, and the href is never followed because the handler returns false. (Probably a bad way to code the page, but that's a separate issue and I'm not under control of the page.)

The way the casper click handler is implemented, it's not taking into account that if the event handler returns false, it's trying to follow the href which it's not supposed to do Also, it's returning false to the client, even though the click itself was a success.

Does this make sense?

By the way, Casper is an incredible project-- I'm really looking forward to working with it!!