jeudi 1 octobre 2015

Basic use of getByXpath in HTML Unit

This has been my best attempt at it:

HtmlUnorderedList unorderedList = (HtmlUnorderedList) page.getFirstByXPath("//ul[@id='inbox-message-list-messages']");

However, that getFirstByXpath returns null. Just learned about using xpath today so I'm sure I'm missing something basic.

code




Aucun commentaire:

Enregistrer un commentaire