Worksoft Community

The HTML ActiveWindow Object

Wiki Table of Contents

Page Details

First published by:
Scott Rudolph
on 16 Feb 2010
Last revision by:
Yujira
on 22 Aug 2011
This page has not yet been rated

The HTML ActiveWindow Object

Filed under: , [Edit Tags]

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/

 

Recent Comments

By: Lino Michael Posted on 5 Aug 2011 12:56

It should be easy and helpful if you can include this object in the System Objects and Actions. Because we can use this active window actions on any screen, so we can't say it is a HTML active window and object.

By: Yujira Posted on 22 Aug 2011 5:53 PM

Hi Michael,

Thank you for your comments. With Worksoft Certify version 8.5.1 and up, there is now a send key action which is a part of the System Objects and Actions. The HTML active window is no longer needed. Please see the online help for more information.

Regards,

Yujira Jirapinyo

Worksoft, Inc.

©2009-2011 Worksoft, Inc.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems