Classic Activity Selector not dynamic how to fix it?

Hi i am trying to select a button from a drop down menu
image

now the thing is the “New” button always has a varying postiion in this dropdown menu

so the classic activity selector-does not automatically choose the “New” button if its in the no.3 position for example, how to make this dynamic, that whenever it finds the “New” option it selects it.

Hey

Use a find children activity and get the drop down items. Then use a for each to loop through the elements, then use an get attribute activity and get the aaname propertie, then place an if activity to check is the propertie match with the “new” and click on that passing in the selector your aaname

Regards

should i choose TOP_LEVELS in the seleciton category?

try with children

image

regards

ok aaname results in blank


here is the "Find Children Selector

did you try with idx attribute?

idx value is 2
but how will that help me?
let me show you inspection
image

How can i extract the " place holder" value?

please show the selector of the new word

"<webctrl css-selector='body&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;div&gt;kat-box&gt;div&gt;section&gt;div&gt;section&gt;div&gt;div&gt;span&gt;kat-dropdown&gt;div&gt;div' parentid='search-result' tag='DIV' parentclass='kat-select-container small' idx='2' />"

Hi @Mystical_Devices

Could you try with select item activity ?