Selector에 or 조건 넣을 수 있나요?

< … aaname=‘사과’ /> or <… aaname=‘딸기’ />

이런식으로

ui요소의 aaname 값이 사과나 딸기인것을 선택하고 싶은데

어떻게 방법이 없나요??

그렇게 해본적은 없지만
저는 비슷한 유형을 다른방법으로 해본적이 있습니다.
aaname을 읽은후 if문을 사용하여 사과or 딸기면 해당 항목을 클릭하게끔 했었습니다.

Hi @komi200
I Think we cant use OR condition in Selectors.
Instead of it store the values of The apple and Strawberry in Variable . then in the string editor of the selector use that variable.

사과 나 딸기처럼 자기가 제어하고 싶은 문장이 들어오는게 확실하다면 셀렉터안에 변수를 넣어서 핸들링이 가능합니다.

예를들어 ( <> 로 감싸고 있으면 코드로 인식하는지 포스트에 안보여서 앞에 < 를 지웠습니다)
wnd app=‘iexplore.exe’ cls=‘#32770’ title=‘Windows Internet Explorer’ />
wnd aaname=‘Windows Internet Explorer’ cls=‘DirectUIHWND’ />
wnd aaname=‘이 페이지 나가기(L)’ cls=‘Button’ title=‘이 페이지 나가기(&L)’ />

이와같은 셀렉터가 있다고 가정하는데 이페이지 나가기가 아니라 변수를 받아서 진행하고싶다 하시면

“wnd app=‘iexplore.exe’ cls=‘#32770’ title=‘Windows Internet Explorer’ />
wnd aaname=‘Windows Internet Explorer’ cls=‘DirectUIHWND’ />
wnd aaname='”+변수명+“’ cls=‘Button’ title='”+변수명+“’ />”
등을 이용하여 셀렉터에 한줄로 기입해주면 변수를 이용하여 셀렉터를 핸들링하실수 있을꺼에요