| || |
Keyboard \'Tab\' key test
Have anybody ever automated 'Tabbing' order of controls? Textbox, Combobox, Grids and Command buttons, all these controls are on one form.
Re: Keyboard \'Tab\' key test
Yes. There are 2 choices I found.
1. Make sure the focus is on the first control in the tab order, then press the tab key. Next use then CtrlFocus() command to make sure that you tabbed to the right control. Repeat this process through all of the controls on a form.
2. I don't like this solution as much, but you can also use Caret position to check tab order. You preform the same actions as above, but you use the CaretPosX() and CaretPosY() functions to find the pixel location of the controls. I don't like this as much because if they move a control, then the test will fail.
Note: I would make this one of the last tests that I automated. I would start with the general regression / integration before I automated this, because with most applications Tab Order may be important to the user, but it is seldom going to cause the software to crash. Just my thoughts.