Simply call

 useTelluriumEngine(false);

and then it switches back to use Selenium API under the hook, no other user
code changes
are required.

Thanks,

Jian

On Thu, Mar 24, 2011 at 6:14 AM, Lajos <[email protected]> wrote:

> Hi Jian,
>
> We are using the tellurium engine. I didnt find a way to call Selenium
> keyUp in tellurim 0.7.0. Is there a solution?
>
> Thanks,
> Lajos
>
> On Mar 23, 10:38 pm, Jian Fang <[email protected]> wrote:
> > If you use keyType, you don't need the response attribute since the
> keyType
> > method
> > simulates the actual key typing by adding keyDown, keyPress, and keyUp
> > events.
> >
> > Are you using the Selenium API or tellurium new engine? Have you tired to
> > manually
> > call the Selenium keyUp method after the type method to see if it works?
> >
> > Thanks,
> >
> > Jian
> >
> > On Wed, Mar 23, 2011 at 4:45 AM, Lajos <[email protected]> wrote:
> > > Hi Jian,
> >
> > > My guess is that commands are passed to selenium but the events are
> > > not fired.
> >
> > > What the code is doing if not executed in Tellurium is that when
> > > TextBeforeField is filled with text then DatePreview field is
> > > updated.
> >
> > > The UI module:
> > > ui.Container(uid: "PopupDatePeriodContainer", clocator: [tag: "div",
> > > class: "date-popup-window clearfix"], respond: ["keyUp"]){
> > >             InputBox(uid: "TextBeforeField", clocator: [id:
> > > "field07_textbefore"], respond: ["keyUp"])
> >
> > >            InputBox(uid: "DatePreview", clocator: [id:
> > > "field07_preview"])
> > >            Button(uid: "DateOkButton", clocator: [name:
> > > "input_field_date_ok"])
> > >            Button(uid: "DateCancelButton", clocator: [class: "popup-
> > > window-button-close", name: "input_field_date_close"])
> > >        }
> >
> > > The test:
> > > clearText "PopupDatePeriodContainer.TextBeforeField"
> > > keyType "PopupDatePeriodContainer.TextBeforeField", "before"
> >
> > > The in the code which is not executed (runs OK without tellurium as we
> > > type to the field):
> > > $('.date-popup-window').keyup(function(e) {
> > >    ..... updates DatePreview field with JQuery .....
> > > });
> >
> > > The console log:
> > > ...
> > > TE: Name: keyDown, start: 1300866201369, duration: 19ms
> > > TE: Name: keyDown, start: 1300866201369, duration: 19ms
> > > TE: Name: keyPress, start: 1300866201390, duration: 26ms
> > > TE: Name: keyPress, start: 1300866201390, duration: 26ms
> > > TE: Name: keyUp, start: 1300866201417, duration: 23ms
> > > TE: Name: keyUp, start: 1300866201417, duration: 23ms
> > > TE: Name: mouseOut, start: 1300866201441, duration: 17ms
> > > TE: Name: mouseOut, start: 1300866201441, duration: 17ms
> > > TE: Name: fireEvent, start: 1300866201459, duration: 25ms
> > > TE: Name: fireEvent, start: 1300866201459, duration: 25ms
> >
> > > Thanks,
> > > Lajos
> >
> > > --
> > > 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.
>
> --
> 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.
>
>

-- 
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.

Reply via email to