Unable to handle chrome certificate pop-up

Hi I have handled the certification pop-up using send hotkeys and type into activity in the first tab but i am not able to handle if any certification pop-up occurs in the second tab using above two activities, if i use above activities the tabs are changing and not handling the pop-up. Please help me.