For Each Element 액티비티에서 Element를 여러 개 사용하고 싶습니다

image

안녕하세요 UiPath Studio를 배우기 시작한 사람입니다.

다음과 같이 For Each Element를 사용하려고 합니다. CurrentLabel 1, 2, 3의 조건에 따라서 CurrentElement와 Current Label_4를 클릭할지 말지 결정해야 합니다.

CurrentLabel_4의 변수 형식이 String으로 되어 있어서 제가 변수 형식을 UiElement로 변경을 했는데 다음과 같이 오류 메세지가 나옵니다.
“For Each UiElement: ‘System.String’ 형식의 값은 이름이 'CurrentLabel_4’인 위치에 설정할 수 없습니다. 이 위치는 ‘UiPath.Core.UiElement’ 형식의 위치이기 때문입니다.”

어떻게 해야 될까요?

도움 주시면 감사하겠습니다.

HI,

Unfortunately, we cannot get UiElement except the first element.
In this case, it’s necessary to use dynamic selector with CurrentLabel_4 and/or attribute from CurrentElement such as TableRow, for example.

Regards,

I really appreciate your help.

I made what I wanted :smile:
And I learned a lot.

Thank you!!!

1 Like

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