I usually avoid even applying. Then I saw a job at a place I really really want to work at and opportunities rarely come. Generic JD and with hindsight maybe I should have asked them about salary before applying but thought that might look grabby. Sent it CV and cover letter on which my level of responsibility was quite clear. Had a lovely interview. They asked my current salary and I told them honestly, said I was happy with them matching it (not fussed if it wasn't more).
I didn't get the job and the said it's solely cos they can't match my salary and they see this as a more "junior" role than I am currently in.
I've learnt my lesson. But what a waste of everyone's time. Why do places do this?