Display Text in For Each UI Element Loop

Hi,

I am using For Each UI Element Loop where each UI Element is JIRA Comment.
How can I get the Text of Comment (as Attribute?) of UI Element?

Thx for any help, KR, Vanja

Hey @VanjaV you can use get text and inside that get text you can pass the for each value current text .
or else

  • Add the Get Attribute activity inside the For Each UI Element loop.
  • Set the UI Element to item (current item in the loop).
  • Set the Attribute property to "text" (or "innertext").
  • Set the Output property to a variable (e.g., commentText).

cheers

1 Like

Hi @VanjaV

The output of the “For Each UI Element” activity includes two variables: CurrentElement and CurrentElement_Label. The “CurrentElement_Label” is a string data type that provides the text of the element. Therefore, there’s no need to use any additional activity to extract the text.

Hope it helps!!

1 Like

Hi @mkankatala

YES it works now :),
but I had to explicitly define the Label by selecting the Text of the Comment:

Thank you!
KR Vanja

1 Like

Hi @singh_sumit

It displayed text, but not from the inside of the Comment.
All around it.

Thx and KR, Vanja

Yes you are right… @VanjaV

Happy Automation!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.