Capture a Page
If you have just captured an application using the Save And Capture Page button, the Capture Page dialog box will open automatically. Otherwise, open the context menu for the application and click Capture a New Page⦠or double-click the New Page box shown in the Explorer perspective panel.
The following dialog box appears
Choosing the Technology
The technology of the selected page is detected automatically depending on the technology of the declared application.
You can also specify it by checking Choose Technology: and selecting the desired technology from the dropdown list.
Selecting the Page
To select the page to capture, keep the Ctrl key pressed and hover the cursor over the page.
Desktop Studio detects the page and responds as follows:
-
It places a red rectangle around the page you have selected.
-
It shows a screen capture of the page in the preview area.
-
It shows a tree of the other potential pages detected around the selected page (the selected page is the red one).
Select the page to capture by clicking it in the tree. A standard name and description will appear in the fields at the bottom of the page, and you can edit them as desired. Then click Scan And Capture.
When scanning and capturing are finished, the window closes and the page is displayed in the Capture pane of the Explorer perspective panel.
The Page Tree
The content of the page tree depends on the technology (automatically detected or manually selected):
-
For a Web page, it contains all the frames displayed in the selected browser instance.
-
For a Windows page, it contains all the controls of the selected Windows application.
-
For a Java page, no tree is displayed.
The selected page can be changed by selecting it in the tree. The red border and the screen capture (if available) are changed to reflect this selection.
Note that for a Windows page, the selected item will be considered as the root item of the page.
-
Each page is preceded by the
icon if it is detected as belonging to the application. -
A recognized page is given the corresponding page name.
Clicking the Scan And Capture button triggers the capture. Desktop Studio executes and stores:
-
A screen capture of the page
-
A capture of the internal page structure (HTML DOM for a Web page, or the class structure for a Windows application)
-
A capture of page source (Web pages only)
A progress bar is updated during the operation to show the capture in progress. Captures are stored on disk and are available for working offline, so there is no need for the application to be running after the capture has taken place). The elements captured depend on the page technology:
-
Screen capture is the same for all technologies.
-
DOM capture:
-
For a Web page, this is the DOM of the Web document.
-
For a Windows page, this is the tree of all the controls, with their properties.
-
-
Source capture (HTML page source): available for Web pages only.
Capture Options
To set further capture options, click the cog icon at the top right.
Pick Page Shortcut
You can choose between using Ctrl + Hover and Shift + Hover to select the page you want to capture.
Start Capture On Hover
Use this option to capture pages that only open on some mouse action (for example, opening a menu with the mouse). If checked, capture starts automatically when you press down the Ctrl key.
Show Pages Already Declared
This option helps you keep track of the pages that have been captured and declared already.
Show Hidden Controls
This is useful if you need to capture controls that are not displayed on the page at first.
Show Page Tree
The page tree shows other potential pages detected around the selected page (the one shown in red). If unchecked, the page tree contains only the element selected. This can be useful when tree exploration is time-consuming.
Capture:
This option lets you select the method used to make a screen capture of the page.
The default capture mode is Print Window, which lets you capture a page that is not completely visible on the screen. If this capture fails, the other capture mode is used automatically. Sometimes, the Print Window capture succeeds, but the resulting capture is not the same as the original. In this case, you can force the use of Screenshot mode by checking it.
Parameters
Max Capture Height
This is used to limit the height of the screen captured. It is useful for capturing very large web pages. The entire DOM is captured but the screen is only partially captured.
Limit Depth To
This option limits the depth of the DOM captured. It's useful for capturing very large Acrobat Reader documents with UI Automation technology. Capturing a huge DOM can take a very long time, and you may only need the first few levels. The result is a partial capture of the DOM.
Limit Siblings To
This is useful when capturing Acrobat Reader content with UIAutomation technology. In some cases, Acrobat Reader returns an infinite number of children of an element. Setting a limit on the number of siblings resolves this issue. The result is a partial capture.
Disable Autoscrolling (Web)
By default, a Web page is automatically scrolled at capture time, to take different screenshots in order to build a full image. Sometimes, scrolling can be infinite (such as in Facebook). This problem can be avoided by disabling autoscrolling. The entire DOM is captured but screen capture is only partial.