Please note that with Certify 8.5.1, there is a System Send Keys action that will work with any windows as well. Please see the online help for more information.
To use the HTML Send key action, an object called "ActiveWindow" needs to be manually added to the HTML maps. Once the Active windows is added, use the object with the Send Keys action against the browser. For example, you may send Ctrl+0 to the browser to set the zoom level and prevent false positives.
1. HTML windows do not contain an ActiveWindow by default it must be added
in the map editor (No Identification Parameters are needed, just choose
the ActiveWindow class and enter a Name and Physical name):
- Go to the Applications or Maps tab and add a New Window to your
Application manually.
- Choose the "Web" Interface and the "Page
<htmlPage>" window Class.
- Make the Name, Physical Name and
Description be "Active Window" and give the Identification Parameter
"Attribute" a value of "IGNORE" then click OK.
2. Add a New Object named "Active Window" to your new "Active Window" window with an object class of ActiveWindow.
3. In your process, create a step that ensures the appropriate
window to which you want to send the keys has focus (for example, you
could simply verify the window is visible).
4. Next, create a step that makes the Object to which you want to
Send Keys active (for example, use the Click action on the object)
5. Then, create a step with the Active Window window and Active Window object and choose the Send Keys action.
6. In the Keys parameter of the Send Keys action, specify the keys
you want to send to the object. For example to send the DOWN ARROW key
you would specify "{Down}" (without the quotes). If you wanted to send
and ALT key combination, you would specify the "%" key (without the
quotes) followed by whatever ALT key you want to send to the currently
active window. For example, if you specify "%{F4}", the Send Keys action
will send the ALT-F4 key combination to the currently active window.
NOTE: The Active Window Send Keys action uses the VB SendKeys
command to forward keys to the active window. For a list of the valid
key codes for the Active Window Send Keys action, see the following
link: http://www.developerfusion.com/article/57/sendkeys-command/

