test if an element is displayed