I've been using the following local extension

Selenium.prototype.doFocus = function(locator) {
   var element = this.page().findElement(locator);
   triggerEvent(element, 'focus', false);
};

to programmatically fire a focus event on an element whose "onFocus" instigates a server round-trip. I've been thinking of adding this to Selenium proper (see SEL-92), but I'm just thinking, perhaps a more general event-firing mechanism would be better. Which do you think is better:

   | fireEvent   | field1   | focus   |
   | fireEvent   | field2   | blur   |
   | fireEvent   | field3   | change   |

or

   | fireFocus | field1 | |
   | fireBlur | field2 | |
   | fireChange | field3 | |

?

--
cheers, MikeW                            http://www.dogbiscuit.org/mdub/

_______________________________________________
Selenium-devel mailing list
[EMAIL PROTECTED]
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-devel

Reply via email to