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.