Allow matching class, name and role in If action