Is there a way we can set a call a set of command?

I am thinking of using `gotolabel` but I was thinking if go back to that label it will pass by again the call. I’m thinking if there was a labelEnd (just wild imagination)

so whenever I’m done using that set of commands it will go back at the bottom and start new set of commands. And whenever I need that set of command I will just call it again.

Let me know if I’m doing it all wrong and there is a better approach for that.

Below is a simple elaboration of the test case Im thinking of:

label | reusable commands
select | ${element} | Variable1
select | ${element} | Variable1
.
.
.
.
(How I wish this exist…) labelEnd

store | locator | element
gotoLabel reusable commands

(then after `reusable commands` can proceed)

1 Like