[ide] jquery 1.5 autocomplete, how to fire click event

243 views
Skip to first unread message

phf

unread,
Mar 15, 2011, 3:38:30 PM3/15/11
to seleniu...@googlegroups.com
Hi,

I am trying to modify a selenium IDE test on a form using the jquery 1.5 autocomplete.

I use typeKeys to have the autocomplete list displayed, but my problem is when it comes to simulate a cick on an entry in this list.

I can select the item I want to choose through css selector : css=ul.ui-autocomplete li:first-child.
waitForElementPresent works, but the following methods do not fire any event :

click,
mousedown
runScript  jQuery.('.ui-autocomplete li:first-child').trigger("click");

No error is triggered, but the selected item is highlighted when I use the Highlight Elements option of Selenium IDE. It is just the jquery event which is not fired.

I have this problem since I upgraded to jquery 1.5, before I ha no trouble to have a selnium test working with jquery autocomplete.

Any help would be greatly appreciated

Philippe

Reply all
Reply to author
Forward
0 new messages