Verifies element identified by locator contains type specified.