Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

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

When testing my webapp manually I get a confirm box: http://dl.dropbox.com/u/1342388/syneto/good_conf_box_1.png, the browser renders it with an overlay, but when run with remotewebdriver the overlay is not present and the confirm is in a window http://dl.dropbox.com/u/1342388/syneto/bad_conf_box_1.png, any idea why is this happening?

Same browser, FF4. The remotewebdriver sends an instantiated FirefoxProfile without modifications that adds this user.js to the Firefox Profile.

share|improve this question

migrated from stackoverflow.com Jun 22 '11 at 2:08

This question came from our site for professional and enthusiast programmers.

Try adding this line to the bottom of the user.js profile to force modal prompts:

user_pref("prompts.tab_modal.enabled", true);

One of the lines in user.js is likely resetting the default behaviour for Firefox 4 prompts, so adding that line at the end of user.js should override the reset and force the new prompt style.

share|improve this answer

WebDriver deliberately sets prompts.tab_modal.enabled to false to be able to deal with alerts across Firefox versions. You can't override the setting at the moment.

share|improve this answer

Your Answer


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