cancel
Showing results for 
Search instead for 
Did you mean: 

Possibility to pass an element as argument to an Action.

Anonymous
Not applicable
Is it possible to pass an element as argument to an action? (Or can I iterate through all elements in a business object and perform some kind of action on them?) I have a scenario where I need to validate whether all elements identified are present in a webpage. Currently I need to create separate wait actions for each element. Is there anyway I can pass element as parameter to the wait action? For example I have 25 text boxes in a webpage and I want to validate the existence of all these elements based on the properties used to identify them. Properties used to identify these objects might be different. In real scenario I have multiple element types on the same page.
2 REPLIES 2

John__Carter
Staff
Staff
No it's not possible unfortunately. The nearest option would be to pass values for use in on a generic element with dynamic attributes. If your textboxes can be identified with the same selection of attributes this might be an effective technique, but of the elements are not similar then it will be impractical. Can you not safely make an assumption that if element A, B and C are present then D, E and F must also be?

Anonymous
Not applicable
Thanks for the quick response. It would have been nice if this feature was present in BP. If this was possible, my plan was to create pages that can handle various kinds of elements. For instance if its a text box then action to validate text box will be called and so on.