Bug Tracker

Modify

Ticket #535 (closed bug: fixed)

Opened 6 years ago

Last modified 15 months ago

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:
Blocking: Blocked by:

Description (last modified by john) (diff)

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

Change History

comment:1 Changed 6 years ago by anonymous

Any work on this?

comment:2 Changed 6 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 6 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 6 years ago by john

  • Priority changed from major to minor

comment:5 Changed 6 years ago by brandon

  • need set to 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 6 years ago by john

  • Status changed from new to closed
  • Version set to 1.1.2
  • Resolution set to fixed
  • Description modified (diff)
  • Milestone set to 1.1.3

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.