Is there a way to build Reusable Dynamic Workflows that take in Elements from the Object Repository

Hello!

I am trying to create reusable workflows that are common functionality and can use any elements from the Object repository. One situation is as below:

Have a workflow that does the following:
1). Clicks a tile (link)
2). Navigates to a new screen and verifies the header of the page.

I want to make this process dynamic in the sense that if the screen has 8 tiles with 8 different headers, I can pass in the tile object and the Header Object into the flow, and have it click on the first item, then verify the header on the second item. Is it possible to do this?

For Example:

I have 8 different color tiles, and 8 headers for these tiles → 16 objects in the repository.
Test A will pass in the Object for the Blue tile to click, and then verify the Blue header.
Test B will pass in the Object for the Pink tile to click, and then verify the Pink header.

The workflow should be the same, just taking in different objects from the repository to perform the sequence.

Thank you,

Jeff

Hi @Wells_Jeffrey

You cannot pass Object Repository items directly into a workflow. Instead, pass the Object Repository path as a String to the reusable workflow. And Inside the workflow, resolve the object at runtime by using
ObjectRepository.Get(“Repository/Path”)

Hope it helps

Thanks & Happh Automation

Thank you, nishii! This sounds like the best approach for me. I really appreciate it!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.