Get a property from selector

Hii, below image shows the selector of an element. I want a idx value from the selector. Is there anyway to do this?
The image shows the watch window of a GUI testing tool, displaying the hierarchical structure of controls and properties for a Discord application window titled "#mlb-bets | Eugene's server - Discord," with specific focus on the "PineBot Verified App APP" control. (Captioned by AI)

Hi @Yasir_Yaqoob

Regards,

Hi @Yasir_Yaqoob

You can use the Get attribute activity and indicate on the UI element. Select the idx from the attribute drop-down, create a variable to the output of Get attribute activity. It will store the idx value of that selector.

Hope it helps!!

Nope, the element does not have the property named idx. I tried that before. It is assigned by the UiPath at runtime.

@Yasir_Yaqoob

Have you tried this?

Regards,

Output variable of Get attribute is giving empty… @Yasir_Yaqoob

Don’t know why it is returning null.

image

@Yasir_Yaqoob

Can you print the LastMessage in Immediate Panel

This is immediate panel bro.

I am thinking about convert it into string, and then apply substring.

@Yasir_Yaqoob

I mean Last Message Variable only because it is getting data or not

Sorry for previous message.
image

I think we should place something else instead of Last()

@Yasir_Yaqoob

Try this

UiElement.Get("idx").ToString

Regards,

Nope, it is throwing an error.

@Yasir_Yaqoob

In my pc it is working. Can you please share the error

image

Regards,

Hi @Yasir_Yaqoob ,
have you tried get attribute activity?