Call test objects by or condition for single operation

Hey guys,
I want to perform one operation by clicking any one button from multiple buttons.

let’s assume I have three button A,B and C and all of those working for same method.
here any one button is clicked at once.

WebUI.click(findTestObject(‘A’) || findTestObject(‘B’) || findTestObject(‘C’))

so please suggest code something like that

Hello, if you want to click on random object from a predefined set of objects, look at my solution in other thread:

1 Like

Hello Marek Melocik

Thanks! for sharing such kind of article
its working fine for me :slight_smile: