Change the code to wait for the popup when page load and try me. Change
the command Click() for SendKeys(). Add some waits for elements in order
to avoid random fail.