Hey Jian This seems to be a problem even in the examples project, Looks like neither keyType nor type works for IE (atleast i dont see characters being typed in the text box as it happens in Firefox) for the GoogleStartPageGroovyTestCase
Regards Ajay Ravichandran On Wed, Nov 11, 2009 at 10:06 PM, khush <[email protected]> wrote: > > Jian, > > I am typing a simple string "[email protected]" in the text box but i also > tried it with "hello" > but it dint work. > > Thanks, > Khush. > > On Nov 11, 10:27 pm, Jian Fang <[email protected]> wrote: > > Anyone else has the same problem for keyType? > > > > In Tellurium, we used jQuery to implement the keyType mechanism as > follows, > > > > Selenium.prototype.doTypeKey = function(locator, key){ > > var $elem = teJQuery(this.browserbot.findElement(locator)); > > > > $elem.val($elem.val()+key).trigger(getEvent("keydown", > > key)).trigger(getEvent("keypress", key)).trigger(getEvent("keyup", key)); > > > > }; > > > > where getEvent is defined as follows, > > > > var getEvent = function(name, key){ > > var e = teJQuery.Event(name); > > e.which = key.charCodeAt(0); > > return e; > > > > }; > > > > If other users have the same issue, we may need to re-visit this part to > > make sure it works fine > > for other browsers such as IE. > > > > For the time being, please use the type() method instead. > > > > BTW, what is the string you typed in? Sometimes, special Strings may not > be > > handled properly in Selenium or Tellurium. > > > > Haroon, could you try the keyType on IE to see if it works fine? > > > > Thanks, > > > > Jian > > > > On Wed, Nov 11, 2009 at 4:19 AM, khush <[email protected]> > wrote: > > > > > I have noticed that getUiElement("root.input0") method is printing the > > > value but when keyType is invoked i only get a single dot(.) in the > > > text box nothing else. > > > > > Anybody has any idea? > > > > > On Nov 11, 12:04 pm, khush <[email protected]> wrote: > > > > Hi All, > > > > > > I am trying to run a web test which is having keytype event. > > > > It is working fine on FireFox but keytyoe event is not firing in the > > > > IE. > > > > > > Has anyone tried keyType in IE? > > > > > > Thanks. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en -~----------~----~----~----~------~----~------~--~---
