다음과 같이 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’ 형식의 위치이기 때문입니다.”
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.