mercredi 5 août 2015

XPath contains returning IndexOutOfBounds Exception


I am new to Xpath. What is the following piece of code checking for ? Does it check for both these class "a b" when retrieving span elements.

HtmlSpan resultsSpan =  (HtmlSpan) page.getByXPath("//span[contains(@class,'a b')]").get(0);

Thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire