I don't know if this is still active but I have some questions.
I've tried your approach above and also the one Matteo Rigon provided. Both of them resulted to 'ERROR TypeError: Cannot read property 'click' of undefined'. Did I missed out something before applying these approaches to trigger click event? I'm using Angular 7 by the way.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.