MDL-52839 behat: Fixed xpath and wait to ensure element is visible