The Document object model used by many browsers specifies how objects such as text, headers, images, and links on a Web page appear. You can use the DOM strategy as an alternative capture strategy that makes use of the DOM when displaying HTML page content. DOM uses server-side ActiveX during playback, and allows you to locate content on a Web page that uses the HTML layout (more explicitly). This Document object model and its published application programming interface (API) is used by UA in conjunction with server-side ActiveX technology to query, modify, and extract page content.
When you select the DOM format, you see a sequence of captures from the page. The captures start from the HTML feature closest to the selected item, and roll outwards. For example, clicking on some text embedded in a row of a table, embedded in a page, results in the text being displayed, then the row, then the table, and then the page. The actual “unwinding” depends on the actual HTML structure of the page.
This capture strategy is most effective when the content of the site is static. Often, it is the most effective approach when defining the second and subsequent captures in a Continuous Capture application.
If required, the DOM strategy can also be combined with client-side ActiveX navigation (advanced navigation) to capture pages that also use JavaScript heavily and as a result are not able to be captured using the normal navigation (non advanced) approach (or for pages that do not capture for other reasons).
It is not necessary to couple it with client-side ActiveX NavACX–that is required only when JavaScript or other rendering approaches in the browser prevent normal navigation and capture. Selecting Advanced Navigation alone does not automatically result in server-side ActiveX being used at playback. Server-side ActiveX is only used when the DOM format or Advanced Navigation are selected.
To use this functionality, when creating a new application, in the Mobile Web Studio – New Web Element window, select DOM from the Format drop-down list.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |