assertElement methods are not deprecated since they are widely used.