How to capture/scrap alternative text from the webpage

How did you skip few of the UI elements? Any conditions ?