firefox4

Firefox 4 confirmation dialog in selenium 2.0b3

别来无恙 提交于 2019-12-02 03:21:01
I have worked with selenium for like 3 months. My tests worked fine in Firefox 3.6. However, when I update to Firefox 4 and selenium-server 2.0b3, there is a problem with the confirmation dialog. Here is the code (very simple): choose_ok_on_next_confirmation click("delete_button") get_confirmation wait_for_page_to_load I have searched a lot and tried many other things like assert_confirmation or store_confirmation. Even is_confirmation_present didn't work. They can't detect the dialog I think. I downgraded to firefox 3.6 and it worked fine. Anybody know the reason? I don't know much about how

window.blur() not working with Firefox 4

拜拜、爱过 提交于 2019-12-01 21:14:48
I have a function that when activated opens a new window as a pop-under under the current browser window. It was working fine with all past version of IE and FF, now it has stopped working. Apparently Mozilla has changed one of the setting of FF 4 to prevent this: http://support.mozilla.com/en-US/questions/806756 Here is the code I am using: function popup(page) { var myWin = window.open(page,"mywindow","menubar=1,resizable=1,status=1,toolbar=1,location=1,directories=1,scrollbars=1"); opener = myWin.blur(); } How can I get this code to work on FF 4? Doesn't look like you have control over this

Firefox 4 ignoring box-sizing?

…衆ロ難τιáo~ 提交于 2019-12-01 16:24:37
I really love the box-sizing property of CSS. In Chrome, IE8+ and Opera (don´t know since which version) this is supported. Firefox 4 seems to ignore it. I know there is the -moz-box-sizing property, but do I really have to write it every time I want to change the box-sizing type? Code <html> <head> <style type="text/css"> .outer{ width:600px; height:100px; background-color:#00ff00; border:1px solid #000; } .inner{ width:100%; height:100%; background-color:#ff0000; border:1px solid #fff; box-sizing:border-box; } </style> </head> <body> <div class="outer"> <div class="inner"></div> </div> <

Firefox 4 ignoring box-sizing?

心已入冬 提交于 2019-12-01 14:26:10
问题 I really love the box-sizing property of CSS. In Chrome, IE8+ and Opera (don´t know since which version) this is supported. Firefox 4 seems to ignore it. I know there is the -moz-box-sizing property, but do I really have to write it every time I want to change the box-sizing type? Code <html> <head> <style type="text/css"> .outer{ width:600px; height:100px; background-color:#00ff00; border:1px solid #000; } .inner{ width:100%; height:100%; background-color:#ff0000; border:1px solid #fff; box

In my firefox extension, onUninstalled event doesn't seem to fire

可紊 提交于 2019-11-30 17:52:50
问题 Firefox 4 exposes some events to detect when the user is uninstalling an extension. I can get onUninstalling to fire (when the user clicks to remove an extension), but I can't get anything to happen when onUninstalled fires (which should occur after the restart). Components.utils.import("resource://gre/modules/AddonManager.jsm"); AddonManager.addAddonListener({ onUninstalled: function(addon){ //does not work alert("uninstalled!"); }, onUninstalling: function(addon){ //works as expected alert(

Selenium 2: Open link in new tab and close tabs

前提是你 提交于 2019-11-27 20:14:40
I want to be able to open a link in a new tab in Selenium 2. Also i want to close the tab when i am finished interacting with the page. How is this possible if I have a WebElement of an <a> tag? I am using the Java API of Selenium 2 with the Firefox Driver, running on Firefox 4. At the moment, the Selenium WebDriver API doesn't have any way of handling tabs. The project would really need a consistent, cross-browser set of methods for managing tabs before I would expect to see an implementation in one of the language bindings like Java. Until then, your JavaScript solution may be the only way,

Firefox 4 : Is there a way to remove the red border in a required form input?

对着背影说爱祢 提交于 2019-11-27 18:39:19
When required is defined in a form field, Firefox 4 automatically shows a red border to this element, even BEFORE the user hits the submit button. <input type="text" name="example" value="This is an example" required /> I think this is disturbing for the user as he/she asn't made mistakes at the beginning. I wnat to hide that red border for the initial state, but show it when the user hits the send button if there is a missing field marked as required. I looked at :required and :invalid from new pseudo selector, but the changes are for before AND after the validation. (from Firefox 4 Required

Error: Attempt to run compile-and-go script on a cleared scope

元气小坏坏 提交于 2019-11-27 11:45:05
Since upgrading to Firefox 4.0, I've noticed that I'm occasionally getting an error in the console stating: attempt to run compile-and-go script on a cleared scope The only information I can find about this on the net currently is on the mozilla groups forum , where it is suggested that it's something to do with session restoring. In my case, though I haven't been able to reliably reproduce the error, it happens at any time, not just after a restore. What's the deal? How do I stop the error? For me (Firefox 11, Firebug 1.9.1) it happens sometimes after I refresh the page (either F5 or CTRL+F5)

jQuery 1.6: backgroundPosition vs backgroundPositionX and FF4 compatibility

允我心安 提交于 2019-11-27 09:39:05
In an attempt to upgrade the jQuery plugin 'iCheckbox' (http://stackoverflow.com/questions/6032538/) to work above jQuery 1.4.4 I found out that the use of animate({backgroundPosition:'10px 0px'}) needed to be changed to animate({backgroundPositionX: '10px', backgroundPositionY: '0px'}) as only properties with one parameter should be used. So far, this makes sense, but wait.. while it's working fine in Safari and Chrome, it's not working in FF4 (all on Mac).. So i tried this and that and finally found out that if I change it to animate({backgroundPosition: '10px'}) It works everywhere! But

Why “Prevent this page from creating additional dialogs” appears in the alert box?

雨燕双飞 提交于 2019-11-27 08:50:52
In my Rails 3 application I do: render :js => "alert(\"Error!\\nEmpty message sent.\");" if ... Sometimes, below this error message (in the same alert box) I see: "Prevent this page from creating additional dialogs" and a checkbox. What does this mean ? Is that possible not to display this additional text and checkbox ? I use Firefox 4. It's a browser feature to stop websites that show annoying alert boxes over and over again. As a web developer, you can't disable it. What does this mean ? This is a security measure on the browser's end to prevent a page from freezing the browser (or the