Interrogating a Web Application

After adding a Web or a Universal Web adapter and setting the StartPage property, you can interrogate the web application.  These steps outline how to interrogate a simple web application (www.training.openspan.com).

Note: When Interrogating Internet Explorer version 8 under Windows 7 SP1, applications running in Internet Explorer version 8 under spawn multiple processes. In Windows 7 SP1, you must set the HookChildProcesses property to True for the Web adapter when interrogating applications in  Internet Explorer version 8. To exclude a specific process or Factory, use the ExcludeProcesses property. See the Using HookChildProcesses and Excluding Processes for Use in Projects topic for more information.

If you are using a Universal Web adapter, also set the BrowserType property to Firefox or Chrome.

  1. Open the web application design page by either double-clicking on the item in Solution Explorer, or by right-clicking on the item and selecting Open.

  2. Click Start Interrogation. The Designer launches the web application start page and the Interrogation Form dialog displays.

  3. On the Interrogation Form dialog, The default selection is Create Global Web Page box. See the Create Global Web Page topic for information on using this interrogation option.

  4. Click the target icon in the Interrogator Form dialog and drag it to an target element you want to include in the solution, for example, the Username text box. A rectangle outlines the text box and surrounds the icon.

  5. Release the target icon . to create a control corresponding to the selected target. The selected target is added to Object Explorer. If the target has parent elements,  these controls are automatically matched and added. OpenSpan Studio uses match rules to uniquely identify each target. See the Interrogator and Match Rules topic for more information on match rules.

  6. Using the Name property for the control, you can rename the control for identification purposes. For example, if the control name is textbox1, you could rename it to identify the application and function within the project, such as txtCRMLogin.

When naming project items, components, and controls, use a unique name within the project. For example, if you have an adapter named Google and an automation named Google, you will receive an error. This also applies when naming components and controls. As a general rule, do not name components using property names. For example, if you rename a button on a Windows form Text, you will receive a build error as the form containing the button has a property named Text.

  1. Continue interrogating targets on the first page of the application and then go to the next page of the application. This Web adapter example of Object Explorer shows controls created by interrogating an OpenSpan Training web application with Internet Explorer:

  2. During Interrogation, you can view all available application targets by opening the Windows tab and Web Controls tab of the Designer. Use these tabs to view properties of application targets and add targets to the solution. See the Web Controls Tab topic for more information.

 

See also

Interrogation Form - Web Application

Interrogation Errors