If A is true then also B must be present" with Constraints - XPath 1

Printer: html.div