Use getAttribute() to retrieve the src attribute's value.
getAttribute()
src
Make sure to type getAttribute("src").
getAttribute("src")