Selecting the active element - I want the robot to choose the earliest active

I want the robot to choose the earliest active
I couldn’t find a click method for this

Hi @Ahmet_Turk

You can use the Find Children activity to get all the active tab data into a list, sort them based on the time & click the first element in the list.

You can refer the following resource for more insights on Find Children:

Hope this helps,
Best Regards.

@Ahmet_Turk

You can actually acheive it using selectors…

One way is if the active and non active attribute is present in selector then directly use that attribute and a common tag that is being used on buttons and use idx=‘1’ then by default everytime it clicks on which ever is active first

Eg : m<webctrl tag=‘Input’ type=‘button’ IsActive=‘1’ idx=‘1’ />

This is a sample not exact selector but this is how it looks

If this is not the case yhen use for each element with innertext and change the buttons and then use get attribute inside loop to check if the element is valid and then click if yes else move to next

Hope this helps

Cheers