[ticket/8610] Use css selector instead of xPath

PHPBB3-8610