check in robot element type, ported from cucumber plugin