A washing agent dispenser for a dishwasher, including a casing defining at least a receptacle adapted to receive an amount of washing agent; a cover displaceable relative to the casing between an opening position and a closing position of the receptacle; the cover carrying an elastic gasket, adapted to sealingly close said receptacle in the closing position of the cover; and a retaining mechanism having a retaining member movable in the casing, and a hooking member movable in the cover and adapted to cooperate with the retaining member. When the cover closes the receptacle the hooking member is kept, by an associated resilient member carried by the cover, in a condition of engagement with the retaining member, maintaining the cover in the closing position. The resilient member associated with the hooking member comprises an appendage integrally formed with and extending from the elastic sealing gasket and interposed between the cover and the hooking member.