I add key events so that you can define UI with the respond attribute
like
InputBox(uid: "searchbox", clocator: [title: "Google Search"],
respond: ["blur", "keyDown"])
If you have key events, the type method will use key actions to type
each character so that your
code can handle Javascript key events for each keystroke. But it is
not a complete solution since
the Selenium command keyDown, keyPress, and keyUp cannot handle
special keys such as ".", "(", "y", etc.
As a result, if the input includes any of the special keys, we will
type in all input and only add
the key events at the end of the input sequence. This may stay this
way until the Selenium bugs are
fixed.
Thanks,
Jian
On Dec 11, 5:53 pm, [email protected] wrote:
> Cool, I will look at it tonight. Right now, time is my obstacle.
>
> Thanks,
>
> Jian
>
> On Dec 11, 3:11 pm, Mikhail Koryak <[email protected]> wrote:
>
> > Jian,
> > i assigned the item to you, it doesnt look like i will be able to get
> > to it today, if you want to make the changes tonight, thats great,
> > otherwise ill probably be able to get it done tomorrow.
>
> > Thanks,
> > MK
>
> > On Dec 11, 12:32 pm, [email protected] wrote:
>
> > > "keyType" is to simulate people type the keyboard and it includes
> > > delays between each keystroke.
> > > That is why it is slow, but it looks more closer to real people
> > > operation. "keyUp" and other
> > > key events are different from mouse events and it should be input
> > > related, i.e., it should be
> > > added to each keystroke, that is why I did not consider them in the
> > > respond event attribute.
>
> > > I would suggest you open an issue, add the key events to the
> > > EventHandler class so that the respond
> > > attribute can accept the key events, then commit to the trunk. Or wait
> > > for me to fix it by tonight.
>
> > > Thanks,
>
> > > Jian
>
> > > On Dec 11, 12:14 pm, Mikhail Koryak <[email protected]> wrote:
>
> > > > Hi,
> > > > i need to fire an event in tellurium, in selenium you could do the
> > > > following:
> > > > fireEvent "locator", "keyUp"
>
> > > > which would fire the keyUp event on the locator. I need to do this
> > > > instead of using keyType because keyType is about 100x slower then
> > > > type, and what i should be doing is using type and then firing the
> > > > event in order to trigger some javascript on the UI.
>
> > > > do we have something like this currently, or should i implement it and
> > > > commit it to my branch?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---