i want to get the Xpaths of all the elements present on the web page using java program,so that i can create an Xpath repository to use in selenium testing?
i have tried it using Jsoup but not able to get it till now. what i have tried so far is,
Document doc = Jsoup.connect("http://www.google.com").get();
Elements elements = doc.body().select("*");
and so on..
i do not wanted to do it manually using browser inspection or any extension.
Aucun commentaire:
Enregistrer un commentaire