Watin Firefox SetAttributeValue - firefox

I'm trying to change images on a website using Watin (FireFox 3.6).
The code worked fine using IE, but after installing Windows 8.1, Watin doesn't work at all on IE 11, so I switched to FireFox.
The following code causes a FireFoxException/jssh error: invalid label
img.SetAttributeValue("src", "http://picload.org/image/X/X.png");
The image exists, and it's Src attribute contains a valid URL.
Is there anything wrong with my code?
Thank you in advance. I'm switching to more reliable methods like curl, so there is no need to advice me to use Watin alternatives.

Related

When running Firefox from JPM CSS doesn't load

I am testing a Firefox extension using jpm run. I am using Firefox 42.0 on Windows 10.
It seems if I test my extension, all pages appear to have SSL certificate issues and the CSS doesn't load for a number of pages.
For example, the Firefox homepage (https://www.mozilla.org/en-GB/firefox/windows-10/welcome/?utm_source=firefox-browser&utm_medium=firefox-browser&utm_content=firstrun) looks like this:
And Twitter (https://twitter.com/) looks like this:
Also, Facebook gives an SSL certificate warning:
It works fine if I run Firefox normally however I get the above issue if I run Firefox or Firefox Developer Edition using jpm run.
I thought it was something my extension was doing, so I tested it with the Mozilla JPM Tutorial and got the same issue.
How can I get Firefox to load properly using jpm?
EDIT: There is a work around. If I run jpm run --profile <path_to_profile> (specifying my Firefox profile) it will work fine (thanks "Tew" from #extdev on irc.mozilla.org. I suppose this means the issue is with the profile jpm is using for Firefox?
Still looking for a proper solution though.

AJAX OPEN in FirefoxDeveloperEdition fails to work like firefox or chrome

Please tell how the APP ID is involved and how it can be changed.
I have been working on Ajax. The application, all in javascript at the client, works great on firefox, safari, and chrome, but not on FirefoxDeveloperEdition.
The issue is at exactly the request.open statement. It does not work on FirefoxDeveloperEdition. In the console I get the error ":" --- that is all, just the colon. As I said, that statement works perfectly on Firefox. I have the most recent version of all apps.
The selection of XMLHttpRequest is working the same in both Firefox and FirefoxDeveloperEdition. Either FirefoxDeveloperEdition is not backward compatible or not meant to be, and I cannot tell which.
Help desired.
D

Webpages with ActiveX-Controls in Firefox [duplicate]

I have an application which uses ActiveX controls. I want to automate this using Selenium IDE. But when i launch the application i end up in an error message "Turn on you ActiveX control". Is there any way to enable ActiveX in FireFox?
Note: I am using User Agent Switcher(as IE7) Addon of firefox to run my application.
No. Firefox doesn't support ActiveX.
"ff-activex-host" worked for me. It uses different tag, but otherwise seems to work on both firefox and chrome.
You can look around the MediaWrap extension for firefox. It is supposed to add transparent ActiveX support to Firefox.
I am not sure it already works with firefox 3.6 though and there are known limitations.
Maybe you can give it a try.
Jerome Wagner
Try this: MeadCo's Neptune.
Or this: IE Tab.

How to use modernizr to make firefox support google OpenSans font?

I am using google Opensans font. It works fine in almost all browser except Firefox.
Should I use Modernizr? If it is, then how can I do it?
Edited: I've update firefox to 29.1. But still not working. Here is a demo in codepen. See, it's not displaying opensans.
just loading the font and using it works fine in firefox 28, so more than likely there is something else going on. Can you post a codepen/jsfiddle showing the issue?

jquery ajax file upload error on MAC safari

I am using ajaxfileupload on to upload images, and it works fine in all browsers on my windows system including Safari...however, on MAC Safari, the $_file array is empty. Any ideas how to debug?
I am not pasting any code here because I have no ideas where the error possibly could be. If you can give me some debug suggestions, I'll be glad to share the results.

Resources