I see we have this same exact question over on StackOverflow.. http://stackoverflow.com/questions/7722712/watir-and-ajax-requests
I vote we deal with the answer over there as that venue is better about being able to format code samples, edit questions and answers, etc. No sense duplicating the effort to assist "user" in two places On Oct 12, 3:55 am, Jarmo Pertman <jarm...@gmail.com> wrote: > What do you expect when clicking that link and how do you know that it > didn't get clicked? > > Jarmo Pertman > ----- > IT does really matter -http://itreallymatters.net > > On Oct 12, 8:38 am, User <silvan.hub...@gmail.com> wrote: > > > > > > > > > In my webapp I have a simple textfield. To this textfield I have a > > jQuery function which will be always executed on every keyup. With > > this function there is an Ajax request assigned which loads every time > > the result of the SQL-Query. My code is equivalent to the code of > > RailsCasts (www.railscasts.com/episodes/240-search-sort-paginate-with- > > ajax). Now I'm testing my webapp with Selenium. With this line of code > > browser.text_field(:id => 'textfield').set("Search text") the text > > will be written and the content will be changed. After it should click > > on a link which is placed on the dynamic content with this code > > browser.a(:id => "link").click. The problem now is that the click > > event won't be executed. Has somebody an idea what the problem could > > be? Or maybe an example with Watir and Ajax? > > > Thank you and regards > > shub -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com