How to select option from popup after mouse rightclick