Default namespaces have sometimes weird side-effects with Calabash and XPath. There is no reason to have the HTML namespace bound on the entire p:library element.