[ http://jira.openqa.org/browse/WTR-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20135#action_20135 ]
Jarmo Pertman commented on WTR-465: ----------------------------------- Doesn't it change any behavior regarding with JavaScript events - e.g. onkeypress, onkeydown, onkeyup, onchange and so on? > improved speed of filling text fields > ------------------------------------- > > Key: WTR-465 > URL: http://jira.openqa.org/browse/WTR-465 > Project: Watir > Issue Type: Improvement > Components: FireWatir > Affects Versions: 1.6.7 > Environment: Fedora Core 13, Firefox 3.6.12 > Reporter: Mark Wieder > Assignee: Angrez > > The set method for filling text fields was operating at about one char per > second, so I rewrote doKeyPress. It now works much faster for both append and > set. > begin > #...existing test for max length > end > # get existing text > oldvalue = "#{(o.value.to_s)}" > # append new text > oldvalue += value > @o.value = oldvalue > @o.fireEvent("onKeyDown") > @o.fireEvent("onKeyPress") > @o.fireEvent("onKeyUp") > Tried and failed to create a diff file for you... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ Wtr-development mailing list Wtr-development@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-development