Has anyone tried using Watir to test a website that uses Ajax?

As a test, I am looking at the new Yahoo Instant Search.

http://instant.search.yahoo.com/

Here is the form HTML:

<form name=w
action="http://rds.yahoo.com/;_ylt=AsI0.1halgK5ggoEYqqRJtOSA8oF;_ylu=X3oDMTB
hNjRqazhxBHNlYwNzZWFyY2g-/SIG=11ia1q7e9/EXP=1127856681/*-http%3A//search.yah
oo.com/search"><input type=hidden name=ei value="UTF-8"><input type=hidden
name=fr value="sfp-inst"><fieldset>
<legend><label for=yschsp><i>Instant Search</i></label></legend>
<div id=yschinput>
<input name=p id=yschsp size=54 maxlength=100 value="" autocomplete=off
onkeydown="instant_key(event);return true;">
<input class=ygbt type=submit name="y" value="Search the Web">
<input name=iscqry id=iscqry type=hidden>
</div>
</fieldset></div></form>

I don't know how to handle the input that includes the onkeydown event using
Watir.

Does anyone have any suggestions and/or advice?

Thanks.

-sean
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to