Test and obtain position of searched element