Updating Object Repository through ‘Add to OR’ feature

An object repository is a collection of objects of the web application, on which actions are performed during the test execution. You can add the objects via recording to your test steps through a web or an application-specific recorder. 

To record your test steps via Opkey Recorder, please refer to the Web Recorder

At any stage, if you need to update your test script by adding objects for dynamic applications, Opkey’s Add to Object Repository feature allows for the retrieval of object properties that gets stored into object repositories. 

Working with ‘Add to OR’ in Opkey

Create an existing Object Repository or open an existing One. The Object Repository window will open.

Click on the ‘Add to OR’ icon.

The Opkey Smart Recorder will get downloaded.  Install it, if not already installed on your system.

Begin recording via Opkey Smart Recorder.

Select the respective Browser.

The browser gets opened up. Enter the desired URL on the browser. Press ALT and hover the mouse over the web element you want to fetch. The Object Properties will get fetched.

Click on ‘Add Object’ button. The Object will get added to the Object Repository.

Getting Familiar with “Add to OR” Buttons :


Concept of setting Pivot on an Object

Pivot is used to establish relation between static and dynamic objects. Dynamic Object are the Objects which changes their properties at runtime while properties of static object remains the same.

For Example:

Let there be a static Object Company and a Dynamic Object Contacts. Now, if you want to establish a relation between Company and Contacts then:

You need to fetch the Object Company and set this as Pivot element by selecting the checkbox “Set Pivot” for the Object.

Now, fetch the Object Contacts and select relation as “near” or “in” w.r.t the pivot element Company.


In this way, you can set relation among the dynamic and static Objects in OpKey. This technique will help you to record dynamic objects and use them in Test case(s)/ Function Library.

Save the OR.

Congratulations! You have successfully added the objects in the Object Repository.

Using OR Data

You can use your Object Repository data with your test steps within Test Case or Function Library files.

Create a Test Case or Function Library file and add a Test Step.

Go to the Object Repository tab, browse your Object Repository file, expand it and map with the desired object.

Doc navig

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article