Skip to main content

Bug Tracker

Side navigation

#535 closed bug (fixed)

Opened December 18, 2006 05:54PM UTC

Closed May 20, 2007 05:29PM UTC

Last modified March 10, 2012 12:35PM UTC

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

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

Attachments (0)
Change History (6)

Changed December 26, 2006 06:46PM UTC by anonymous comment:1

Any work on this?

Changed January 02, 2007 02:20PM UTC by joern comment:2

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?

Changed January 10, 2007 06:31AM UTC by anonymous comment:3

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?

Changed January 11, 2007 07:35AM UTC by john comment:4

priority: majorminor

Changed April 25, 2007 11:24PM UTC by brandon comment:5

need: → Test Case

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

Changed May 20, 2007 05:29PM UTC by john comment:6

description: Using JQuery 1.04 and Selenium 0.7, JQuery form observers don't catch Selenium filling out forms.\ Using JQuery 1.04 and Selenium 0.7, JQuery form observers don't catch Selenium filling out forms. \
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.