how to get list text?
I tried to get all the file names on this list.

xpath String folder_listview = "/Pane[@ClassName="#32769"][@Name="데스크톱 1"]" + "/Window[@ClassName="CabinetWClass"][@Name="snyc2"]" + "/Pane[@ClassName="ShellTabWindowClass"][@Name="sync2"]" + "/Pane[@ClassName="DUIViewWndClassName"]" + "/Pane[@Name="셸 폴더 보기"][@AutomationId="listview"]" + "/List[@ClassName="UIItemsView"][@Name="항목 보기"]" + "/ListItem[@ClassName="UIItem"]";
Why can't read the list? It was a code that worked normally on other routes.
my code ` String folder_listview = "/Pane[@ClassName="#32769"][@Name="데스크톱 1"]" + "/Window[@ClassName="CabinetWClass"][@Name="snyc2"]" + "/Pane[@ClassName="ShellTabWindowClass"][@Name="sync2"]" + "/Pane[@ClassName="DUIViewWndClassName"]" + "/Pane[@Name="셸 폴더 보기"][@AutomationId="listview"]" + "/List[@ClassName="UIItemsView"][@Name="항목 보기"]" + "/ListItem[@ClassName="UIItem"]";
System.out.println("---------1---------\n");
List<WebElement> sync_list_elements = (List<WebElement>) winapp.findElementsByXPath(folder_listview);
int size = sync_list_elements.size();
System.out.println(size);
//목록 모두 list에 추가하기
for (WebElement e : sync_list_elements) {
list.add(e.getText());
System.out.println(e.getText());
}
System.out.println("------------------\n");`
check 01:10 in video
https://user-images.githubusercontent.com/8816386/173310556-fc54aed1-2299-44de-8108-882ae0f7d927.mp4
Why are you using winappdriver for this? You can get the list programmatically?
Why are you using winappdriver for this? You can get the list programmatically?
yes,I'm going to compare the list of local files with the list of files on the server.
https://docs.microsoft.com/en-us/dotnet/api/system.io.directory.getfiles?view=net-6.0