I am trying to fetch the data from ui application . I am automating a windows application.I used tool is winapp .. previously, I had tried with winium tool. it is working fine for me.. But winapp is not working for me..
It is not throwing any error..

WebElement listView = AppSession.findElementByAccessibilityId("ListView1");

                     List<WebElement> itemNames =listView.findElements(By.("./*[contains(@LocalizedControlType, 'item')]"));



                     List<String> totalData = new ArrayList<String>();
                     for(int a=0;a<itemNames.size();a++)
                     {
                     List<WebElement> date = itemNames.get(a).findElements(By.("./*[contains(@LocalizedControlType, 'text')]"));

                         for(int j=0;j<date.size();j++)
                         {
                             String celtext = date.get(j).getAttribute("Name");
                            System.out.println(celtext);
                            totalData.add(celtext);

                         }
                     }



Source link https://sqa.stackexchange.com/questions/34822/-driver-is-not--xpath

LEAVE A REPLY

Please enter your comment!
Please enter your name here