Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need this when running automated Selenium (Geb) tests. Right now Chrome always pops up a dialog box asking me what to do. I just want it to do nothing instead. Is there such a switch?

share|improve this question

Normally if you visit a page and attempt to launch a hyperlink that requires an external protocol handler, the dialog Chrome shows that asks you what to do should also have a checkbox to make it remember your choice.

If you don't see a checkbox or it doesn't work for you, you can try the following after closing all instances of Chrome. Under English language Windows XP edit the file

%UserProfile%\Local Settings\Application Data\Google\Chrome\User Data\Local State

in a text editor. Under English Vista+ the path to the file is

%LocalAppData%\Google\Chrome\User Data\Local State.

Now search for a line that says "mailto": false, and add your own protocol underneath in a similar manner. For example:

"mailto": false,
"tel": false,

If you use some other OS which you failed to specify, search for the file and edit as mentioned above, then open the browser and see if it worked.

share|improve this answer
Hi Karan,the problem is when I run an automated test, it is ignoring these settings. That's why I was looking for a command prompt switch. – Behrang Nov 27 '12 at 23:46
Don't think there is one, but I'll get back to you if I find anything. – Karan Nov 27 '12 at 23:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.