Thank you Jian On Jul 27, 2:38 pm, Jian Fang <[email protected]> wrote: > I just added the following method to the basic UI object: > > void keyPress(String uid, String key) > > void keyDown(String uid, String key) > > void keyUp(String uid, String key) > > void focus(String uid) > > void fireEvent(String uid, String eventName) > > Thus, all UI objects including the Selector can use them. For example, > > keyUp("Form.Username.Input", "\\13"); > > Please use 0.8.0 snapshot from > > http://maven.kungfuters.org/content/repositories/snapshots/org/tellur... > > Thanks, > > Jian > > On Tue, Jul 27, 2010 at 1:21 AM, Jian Fang <[email protected]> wrote: > > Thanks for letting us know your use case. Sure, we will add that to 0.8.0 > > soon. > > > Thanks, > > > Jian > > > On Tue, Jul 27, 2010 at 1:02 AM, messidinho <[email protected]> wrote: > > >> Hi Jian, > > >> A method to trigger the enter/return key on a Selector similar to the > >> typeAndReturn method would be useful because in my situation from a UI > >> user's perspective, the select element is the last mandatory field > >> followed by a bunch of optional fields. So, it's a productivity bonus > >> for the user if the form information can be submitted at this point > >> after all mandatory fields has been completed. In this case, the > >> select element is not in a HTML form element. Hope that you can > >> include it in 0.8.0. > > >> Thanks > > >> On Jul 26, 10:35 pm, Jian Fang <[email protected]> wrote: > >> > We did not put the typeAndReturn, type, and keyType methods on the > >> Selector > >> > object. The supported methods are listed here: > > >> >http://code.google.com/p/aost/wiki/UserGuide070UIObjects#Selector > > >> > However, if you really need to use these methods on a Selector object > >> and we > >> > missed > >> > that, please let us know and we can added them to 0.8.0. > > >> > Thanks, > > >> > Jian > > >> > On Mon, Jul 26, 2010 at 2:51 AM, 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]> > >> <tellurium-users%[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]<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.
