Thanks for the response Marc. You are correct, the issue is w/ ActiveXObject
failing in Firefox. The offending JavaScript function:
<script language="JavaScript">
function alarmCheck() {
xmlHTTP = new ActiveXObject("Microsoft.XMLHTTP");
xmlHTTP.onReadyStateChange = handleResponse;
xmlHTTP.open("GET",
"../Mach/lib/com/alarmCheck.cfc?method=alarmCheck&userID=xx&perspectiveID=xx&offSet=0");
xmlHTTP.send(null);
setTimeout("alarmCheck()", 300000); //300000 = 5 mins; 60000 = 1
min
</script>
I checked the page with HTML validator plugin and i can see the offending
code ( all over the app). Some pages in the app fail in Firefox but it works
fine in IE 6. Does this mean i will be limited to only IE6 :) ?
Thanks
-Rhee
On Wed, Mar 11, 2009 at 6:26 AM, Marc Guillemot <[email protected]> wrote:
> Hi,
>
> if you get this error simulating Firefox, then it is normal as Firefox
> doesn't support ActiveXObject.
> It may have to different causes:
> - your app is badly written and tries to create an ActiveXObject when
> the browser is Firefox
> - or, HtmlUnit badly simulates Firefox at some point what leads the JS
> code to handle it like IE what is wrong
>
> You need to investigate more to understand the problem ;-(
>
> Cheers,
> Marc.
> --
> Web: http://www.efficient-webtesting.com
> Blog: http://mguillem.wordpress.com
>
> Rhee wrote:
> > Marc, thanks for the response;
> >
> > I get this error when simulating firefox. If i comment out the line
> > below in config ( assuming IE is default), the the test passes (expected
> > multi framed page in Results is correct) but the resulting page is a 404
> > page and I'm not sure why because the application is available.
> >
> > <!-- header name="User-Agent" value="Mozilla/5.0 (Windows; U; Windows NT
> > 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR
> > 3.5.30729)" /> -->
> >
> > IE Version 6.0.2900.xpsp2
> > Firefox version 3.06
> >
> > Is there anything I'm missing?
> >
> > Thanks again.
> > -Rhee
> >
> > On Tue, Mar 3, 2009 at 4:08 AM, Marc Guillemot <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> > Hi,
> >
> > which browser do you simulate? If you simulate IE6 (which is the
> > default) or IE7, this is strange as ActiveXObject is definitely
> defined.
> >
> > Cheers,
> > Marc.
> > --
> > Web: http://www.efficient-webtesting.com
> > Blog: http://mguillem.wordpress.com
> >
> > Rhee wrote:
> > > Hi All
> > >
> > > I am validating a cold fusion login page w/ Java script. When i
> > execute
> > > the script below, i get an error.
> > >
> > > .
> > > <setInputField name="txtLogin" value="userid" />
> > > <setInputField name="txtPassword" value="pwd" />
> > > <clickButton label ="Login" />
> > > .
> > >
> > > *JavaScript error loading page http://xx.xx.xx.xx
> > > /recruiters/skin_mainheader.cfm: ReferenceError: "ActiveXObject"
> > is not
> > > defined. (script in http://xx.xx.xx.xx/recruiters/skin_mainheader.cfm
> > > from (207, 32) to (244, 11)#219)*
> > >
> > > The Resulting page in the error page is the correct expected page
> but
> > > test fails w/ error. Any suggestions? I am unable to move past
> > this error.
> > >
> > > If i add
> > >
> > > * <enableJavaScript description="Enable Disable javascript to
> > avoid java
> > > script errors"
> > > enable="false"/>*
> > >
> > > Then i get error :
> > >
> > > "No suitable form found having field named "txtLogin""
> > >
> > > In this case Webtest should see the form
> > >
> > > *<td .*..
> > > <table ..
> > > <form onsubmit="return _CF_checklogin(this)" target="_parent"
> > > method="post" action="/recruiters/dologin.cfm" name="login"/>
> > > <tbody>
> > > </tbody>
> > > </table>
> > > *</td>*
> > >
> > > Thanks
> > > - Rhee
> > >
> > >
> >
> > _______________________________________________
> > WebTest mailing list
> > [email protected] <mailto:[email protected]>
> > http://lists.canoo.com/mailman/listinfo/webtest
> >
> >
> >
> >
> > --
> > - Rhee
> > "Risk nothing and you gain nothing"
>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
--
- Rhee
"Risk nothing and you gain nothing"