Key Press and Fire Event
Imagine that if you have a function in your application that can be invoked by pressing the "Tab" key.
Eg. Values being populated on focus out.
We can use keyPress with ASCII value for the key which you want to trigger the function.
Eg:
Command Target Value
keyPress Txt_Login \9
here "\9" is ascii value of horizontal tab.
Some functions may be used Onblur. It will trigger the function when the field looses the key focus.
We can use fireEvent with "blur" or "focus" command as follows:
Command Target Value
fireEvent Txt_Login blur
No comments:
Post a Comment