[Solved] shorten my code please


Assuming, you want to trigger the nested button

$('.Icon Icon--retweet > .btn primary-btn retweet-action').trigger('click');

If not, just set an id attribute by id='mybutton' to whichever element you want and use

$('#mybutton').trigger('click');

0

solved shorten my code please