Picture of a helium gas discharge tube.
When the emission lines in sunlight were analyzed around 1900, there were unaccounted for lines.
These lines were not seen for any of the known elements.
The existence of the new emission lines was taken as proof that there was a "new" element in the sun.
Later research resulted in isolation of helium here on earth.