Bug Tracker

Opened 13 years ago

Closed 12 years ago

Last modified 8 years ago

#535 closed bug (fixed)

JQuery doesn't catch Selenium's keyPress or Type

Reported by: anonymous Owned by:
Priority: minor Milestone: 1.1.3
Component: event Version: 1.1.2
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by john)

Using JQuery 1.04 and Selenium 0.7, JQuery form observers don't catch Selenium filling out forms.

Change History (6)

comment:1 Changed 13 years ago by anonymous

Any work on this?

comment:2 Changed 13 years ago by joern

Not yet.

If I add a jQuery submit handler to a form and call the submit method of the DOM form element, jQuery's handler isn't invoked either.

var form = document.getElementById("myform");
$(form).submit(function() { alert("form submit"); });
form.submit();

I guess the same applies to Selenium and jQuery.

I have no idea how to solve this without Selenium knowing about jQuery. Did similar problems occur with other libraries?

comment:3 Changed 13 years ago by anonymous

Selenium testing is the up and coming way for developers to test Ajax apps. Can we modify jQuery to invoke handlers?

Another idea is that Selenium takes plugins in the form of a user.js. Perhaps one could be written to let it know about jQuery?

comment:4 Changed 13 years ago by john

Priority: majorminor

comment:5 Changed 13 years ago by brandon

need: Test Case

Would the latest changes to the event system to use DOM Level 2 handlers change the status of this bug?

comment:6 Changed 12 years ago by john

Description: modified (diff)
Milestone: 1.1.3
Resolution: fixed
Status: newclosed
Version: 1.1.2

There's no way that we could build an automated test for this, so we're just going to have to assume that it's ok, until proven otherwise.

Note: See TracTickets for help on using tickets.