Although UFT provides a rich interface that encapsulates the most common operations required to manipulate web elements (for example, click, double-click, set, select, and so on), it has some limitations. For instance, UFT does not give us an obvious way to verify the style of the text. In such a case, we will refer to the Document Object Model (DOM) to get access to the native methods and properties of the elements. Another situation that would justify such usage would be when the performance of the test run is hindered when a huge amount of elements needs to be processed. For example, processing a table with lots of rows and columns through UFT's WebTable
interface takes much longer than accessing these same elements through DOM. In this recipe, we will see how to get the style of an element and how to get a collection of elements with a particular HTML tag.
Advanced UFT 12 for Test Engineers Cookbook
Advanced UFT 12 for Test Engineers Cookbook
Overview of this book
Table of Contents (18 chapters)
Advanced UFT 12 for Test Engineers Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Data-driven Tests
Testing Web Pages
Testing XML and Database
Method Overriding
Object Identification
Event and Exception Handling
Using Classes
Utility and Reserved Objects
Windows Script Host
Frameworks
Design Patterns
Index
Customer Reviews