Pass Element As Parameter

It would be really helpful to be able to pass an element as a parameter. Currently, if I want to pass an element to another test, I have to pass the XPATH string, which means that I have to have two places where the XPATH is stored, so I have duplicate code. It would be awesome to be able to just pass the whole element to another test.

Hi @aequinox,

The elements are stored at an application level. This means that for two different tests that use the same application, you’ll have the same elements.

Yes, I understand that the elements are stored at an application level. I am talking about something like the Swipe to Element action, where we can pass an element to another test. It would be helpful for building more dynamic tests. Right now, to do something similar, I have to pass the XPATH of the element as a string, and then use that in the other test to create the element.