bugfix with test for #25, an element is only found if isShown() == true