try following keyDown "AlbumStatus", "\\13" keyUp "AlbumStatus", "\\13"
This would simulate the enter on AlbumStatus UI element. Thanks Haroon On 26 July 2010 07:51, messidinho <[email protected]> wrote: > I'm trying to simulate an enter/return key keypress event on a > Selector element using the following alternatives, but haven't had > success triggering it: > typeAndReturn "AlbumStatus", "\\13" > type "AlbumStatus", "\\13" > keyType "AlbumStatus", "\\13" > > The error message that I keep getting is along the lines of: > groovy.lang.MissingMethodException: No signature of method: > org.telluriumsource.ui.object.UiObject.typeAndReturn() is applicable > for argument types: (java.lang.String, > org.telluriumsource.dsl.BaseDslContext$_typeAndReturn_closure11) > values: [\13, org.telluriumsource.dsl.BaseDslContext > $_typeandreturn_closur...@8c97dd] > > The UI defined as follow: > ui.Selector(uid: "AlbumStatus", clocator: [name: "Album_Status"], > respond: ["keypress"]) > > Anyone done such a thing before or know how to? > > 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]<tellurium-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/tellurium-users?hl=en. > > -- 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.
