I’m using tool to automate my app. I am increasing the execution speed of my code.

 List<WebElement> aw = driver.findElementsById("DgViewAwayTeam");  //table id



          System.out.println(aw.size());

          List<String> away_players = new ArrayList<String>();
          for(int a=0;a<aw.size();a++)
          {

                  String celtext = aw.get(a).getAttribute("Value.Value");
                 System.out.println(celtext);
                  away_players.add(celtext);


              }

enter image description here

I am taking a name of each row. in the above screenhshot, you can see the control patterns value. I want to take those names of each rows using . so it will increase my execution speed.. now i am getting element not found exception.



Source link https://sqa.stackexchange.com/questions/34839/how-to-take-xpath-using-winapp-driver

LEAVE A REPLY

Please enter your comment!
Please enter your name here