replace elementFromPoint by explicit search