A virtual object in UFT is used to identify an object when UFT can’t recognize it using objects standard class.UFT doesn’t recognize an object if it is a custom or non-standard class object. If an application contains non-standard class objects, in that situation custom objects, can be mapped to standard class objects like buttons, checkboxes, etc to perform the required action.
We will create a virtual object to treat the save icon as a button object. Go to the Tools> Virtual Object> New Virtual Object and click on the “Next” button.
Limitations of Virtual Object
- UFT does not support virtual objects for analog or low-level recording mode.
- Virtual objects can be added to the script only by recording action on it.
- A checkpoint can be added to a Virtual Object.
- Virtual Objects cannot be added by Object Repository.
- A custom object can be mapped to a particular class like (button, checkbox, table, etc). However, all the methods of the native objects are not supported by Virtual objects.
- The test execution will fail if the screen resolution changes.
- The virtual object uses height and width properties which might change.
- How to Use Visual Relation Identifier in UFT with Example
- Micro Focus UFT Tutorial – An Overview of UFT
- All You Need to Know About Object Identification in UFT
- The Ultimate Cheat Sheet on Step Generator in UFT
- How To Add Checkpoints in UFT
- Create User-Defined Functions in UFT
- All You Need to Know about Checkpoints In UFT