Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

When testing my webapp manually I get a confirm box:, the browser renders it with an overlay, but when run with remotewebdriver the overlay is not present and the confirm is in a window, 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 Jun 22 '11 at 2:08

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

2 Answers 2

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.