JavaScript error...

View: New views
7 Messages — Rating Filter:   Alert me  

JavaScript error...

by Alex Ignatov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

JavaScript error...

Hey,

I just started using webtest. I am running a demo test for State Farm on a form on their own website: http://www.statefarm.com.

This may sound somewhat odd, but security on the computer I am using does not allow access to any website except statefarm.com through Webtest.

When I invoke http://www.statefarm.com using

                        <invoke url="https://statefarm.com" description="Go to State Farm"/>

I get an error because there is a small image on the bottom of the page which is loaded from a different website, so the result is

JavaScript error loading page http://www.statefarm.com/: ReferenceError: "DisplayImg" is not defined. (script in http://www.statefarm.com/ from (856, 32) to (856, 61)#856)

It doesnt actually matter for the test that this happens because this piece of JavaScript is completely irrelevant to the form I am trying to access on the page.. However, the Invoke step fails and the test stops running.

The only workaround I found for this is to disable Javascript before the Invoke and enable is again after the Invoke, like so:

                        <enableJavaScript enable="false"/>

                        <invoke url="https://statefarm.com" description="Go to State Farm"/>

                        <enableJavaScript enable="true"/>

                        <setInputField htmlid="sZip" value="60630" />

                        <clickButton htmlid="getRateQuoteGo" />

However, this causes an error in the getRateQuoteGo button click because it references javascript which wasnt loaded when I invoked the page.

Anyone know a way I can solve this? Can I somehow just ignore the javascript ReferenceError?

Thanks,

Alex


Parent Message unknown RE: JavaScript error...

by Alex Ignatov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

RE: JavaScript error...

Another error

I was able to fix the problem using this code in the config:

                        <config>

                        <option name="ThrowExceptionOnScriptError" value="false"/>

                                </config>

However, when I click on the button I get a Please Wait screen which comes up while the page is loading. The resulting page of the button click is just the Please Wait screen instead of the actual page which loads afterwards, so Webtest cant find any of the form elements I am trying to fill in on this page.

Anyone have  any suggestions? I tried looking through the documentation for this and couldnt find anything.

Alex

_____________________________________________
From: Alex Ignatov
Sent: Thursday, October 08, 2009 4:01 PM
To: 'webtest@...'
Subject: JavaScript error...

Hey,

I just started using webtest. I am running a demo test for State Farm on a form on their own website: http://www.statefarm.com.

This may sound somewhat odd, but security on the computer I am using does not allow access to any website except statefarm.com through Webtest.

When I invoke http://www.statefarm.com using

                        <invoke url="https://statefarm.com" description="Go to State Farm"/>

I get an error because there is a small image on the bottom of the page which is loaded from a different website, so the result is

“JavaScript error loading page http://www.statefarm.com/: ReferenceError: "DisplayImg" is not defined. (script in http://www.statefarm.com/ from (856, 32) to (856, 61)#856)”

It doesnt actually matter for the test that this happens because this piece of JavaScript is completely irrelevant to the form I am trying to access on the page.. However, the Invoke step fails and the test stops running.

The only workaround I found for this is to disable Javascript before the Invoke and enable is again after the Invoke, like so:

                        <enableJavaScript enable="false"/>

                        <invoke url="https://statefarm.com" description="Go to State Farm"/>

                        <enableJavaScript enable="true"/>

                        <setInputField htmlid="sZip" value="60630" />

                        <clickButton htmlid="getRateQuoteGo" />

However, this causes an error in the “getRateQuoteGo” button click because it references javascript which wasnt loaded when I invoked the page.

Anyone know a way I can solve this? Can I somehow just ignore the javascript ReferenceError?

Thanks,

Alex


RE: JavaScript error...

by Ali, Haneef :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
RE: JavaScript error...

Just do a sleep and then test it

   <sleep  seconds=”10” description=”10 second sleep” />

 

 

Haneef

 

From: webtest-admin@... [mailto:webtest-admin@...] On Behalf Of Alex Ignatov
Sent: Thursday, October 08, 2009 2:26 PM
To: Alex Ignatov; webtest@...
Subject: [Webtest] RE: JavaScript error...

 

Another error…

I was able to fix the problem using this code in the config:

                        <config>

                        <option name="ThrowExceptionOnScriptError" value="false"/>

                                </config>

However, when I click on the button I get a “Please Wait” screen which comes up while the page is loading. The ‘resulting page’ of the button click is just the “Please Wait” screen instead of the actual page which loads afterwards, so Webtest can’t find any of the form elements I am trying to fill in on this page.

Anyone have  any suggestions? I tried looking through the documentation for this and couldn’t find anything.

Alex

_____________________________________________
From: Alex Ignatov
Sent: Thursday, October 08, 2009 4:01 PM
To: 'webtest@...'
Subject: JavaScript error...

Hey,

I just started using webtest. I am running a demo test for State Farm on a form on their own website: http://www.statefarm.com.

This may sound somewhat odd, but security on the computer I am using does not allow access to any website except statefarm.com through Webtest.

When I invoke http://www.statefarm.com using

                        <invoke url="https://statefarm.com" description="Go to State Farm"/>

I get an error because there is a small image on the bottom of the page which is loaded from a different website, so the result is

“JavaScript error loading page http://www.statefarm.com/: ReferenceError: "DisplayImg" is not defined. (script in http://www.statefarm.com/ from (856, 32) to (856, 61)#856)”

It doesn’t actually matter for the test that this happens because this piece of JavaScript is completely irrelevant to the form I am trying to access on the page.. However, the Invoke step fails and the test stops running.

The only workaround I found for this is to disable Javascript before the Invoke and enable is again after the Invoke, like so:

                        <enableJavaScript enable="false"/>

                        <invoke url="https://statefarm.com" description="Go to State Farm"/>

                        <enableJavaScript enable="true"/>

                        <setInputField htmlid="sZip" value="60630" />

                        <clickButton htmlid="getRateQuoteGo" />

However, this causes an error in the “getRateQuoteGo” button click because it references javascript which wasn’t loaded when I invoked the page.

Anyone know a way I can solve this? Can I somehow just ignore the javascript ReferenceError?

Thanks,

Alex


RE: JavaScript error...

by Alex Ignatov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
RE: JavaScript error...

I tried that, but it doesn’t do anything. Basically the page preloads content on the next page before opening it.

 

On the page, here’s the important code which preloads the page and redirects once it is loaded (it basically submits a form once it’s loaded):

 

               

                <script type="text/javascript" language="javascript">

                                function launchDoOnLoad() {

                                                dialogs.modal.open("SFX_waiting_modal");

                                                //ddui.preload();

                                                document.getElementById("MainForm").submit();

                                }                             

                </script>

</head>

<body onload="launchDoOnLoad();"

                                                class="sfx_icon  sfx_header_curved sfx_headerButtons_hide sfx_headerNavBar_hidesfx_no_icon sfx_layout_wide sfx_secondaryArea_hide">

               

                <form id="MainForm" name="MainForm" method="post" action="/apps/autoquoteapply/execute.do?applicationName=Auto&city=Chicago&effectiveDate=20091008&endEffectiveDate=20091107&postalCode=60630&productId=PLJ37454G00&regionalOffice=01&stateAbbreviation=IL&orderScoreIndicator=true">

                               

 

Webtest doesn’t actually execute this code for some reason.

 

 

 

 

From: Ali, Haneef [mailto:haneef.ali@...]
Sent: Thursday, October 08, 2009 4:51 PM
To: webtest@...; Alex Ignatov; webtest@...
Subject: RE: JavaScript error...

 

Just do a sleep and then test it

   <sleep  seconds=”10” description=”10 second sleep” />

 

 

Haneef

 

From: webtest-admin@... [mailto:webtest-admin@...] On Behalf Of Alex Ignatov
Sent: Thursday, October 08, 2009 2:26 PM
To: Alex Ignatov; webtest@...
Subject: [Webtest] RE: JavaScript error...

 

Another error…

I was able to fix the problem using this code in the config:

                        <config>

                        <option name="ThrowExceptionOnScriptError" value="false"/>

                                </config>

However, when I click on the button I get a “Please Wait” screen which comes up while the page is loading. The ‘resulting page’ of the button click is just the “Please Wait” screen instead of the actual page which loads afterwards, so Webtest can’t find any of the form elements I am trying to fill in on this page.

Anyone have  any suggestions? I tried looking through the documentation for this and couldn’t find anything.

Alex

_____________________________________________
From: Alex Ignatov
Sent: Thursday, October 08, 2009 4:01 PM
To: 'webtest@...'
Subject: JavaScript error...

Hey,

I just started using webtest. I am running a demo test for State Farm on a form on their own website: http://www.statefarm.com.

This may sound somewhat odd, but security on the computer I am using does not allow access to any website except statefarm.com through Webtest.

When I invoke http://www.statefarm.com using

                        <invoke url="https://statefarm.com" description="Go to State Farm"/>

I get an error because there is a small image on the bottom of the page which is loaded from a different website, so the result is

“JavaScript error loading page http://www.statefarm.com/: ReferenceError: "DisplayImg" is not defined. (script in http://www.statefarm.com/ from (856, 32) to (856, 61)#856)”

It doesn’t actually matter for the test that this happens because this piece of JavaScript is completely irrelevant to the form I am trying to access on the page.. However, the Invoke step fails and the test stops running.

The only workaround I found for this is to disable Javascript before the Invoke and enable is again after the Invoke, like so:

                        <enableJavaScript enable="false"/>

                        <invoke url="https://statefarm.com" description="Go to State Farm"/>

                        <enableJavaScript enable="true"/>

                        <setInputField htmlid="sZip" value="60630" />

                        <clickButton htmlid="getRateQuoteGo" />

However, this causes an error in the “getRateQuoteGo” button click because it references javascript which wasn’t loaded when I invoked the page.

Anyone know a way I can solve this? Can I somehow just ignore the javascript ReferenceError?

Thanks,

Alex


Re: RE: JavaScript error...

by Marc Guillemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

do you use a recent build? Have you tried to simulate Firefox instead of
IE?

Cheers,
Marc.

Alex Ignatov a écrit :

> I tried that, but it doesn’t do anything. Basically the page preloads
> content on the next page before opening it.
>
>  
>
> On the page, here’s the important code which preloads the page and
> redirects once it is loaded (it basically submits a form once it’s loaded):
>
>  
>
>                
>
>                 <script type="text/javascript" language="javascript">
>
>                                 function launchDoOnLoad() {
>
>                                                
> dialogs.modal.open("SFX_waiting_modal");
>
>                                                 //ddui.preload();
>
>                                                
> document.getElementById("MainForm").submit();
>
>                                 }                            
>
>                 </script>
>
> </head>
>
> <body onload="launchDoOnLoad();"
>
>                                                 class="sfx_icon  
> sfx_header_curved sfx_headerButtons_hide
> sfx_headerNavBar_hidesfx_no_icon sfx_layout_wide sfx_secondaryArea_hide">
>
>                
>
>                 <form id="MainForm" name="MainForm" method="post"
> action="/apps/autoquoteapply/execute.do?applicationName=Auto&city=Chicago&effectiveDate=20091008&endEffectiveDate=20091107&postalCode=60630&productId=PLJ37454G00®ionalOffice=01&stateAbbreviation=IL&orderScoreIndicator=true">
>
>                                
>
>  
>
> Webtest doesn’t actually execute this code for some reason.
>
>  
>
>  
>
>  
>
>  
>
> *From:* Ali, Haneef [mailto:haneef.ali@...]
> *Sent:* Thursday, October 08, 2009 4:51 PM
> *To:* webtest@...; Alex Ignatov; webtest@...
> *Subject:* RE: JavaScript error...
>
>  
>
> Just do a sleep and then test it
>
>    <sleep  seconds=”10” description=”10 second sleep” />
>
>  
>
>  
>
> Haneef
>
>  
>
> *From:* webtest-admin@...
> [mailto:webtest-admin@...] *On Behalf Of *Alex Ignatov
> *Sent:* Thursday, October 08, 2009 2:26 PM
> *To:* Alex Ignatov; webtest@...
> *Subject:* [Webtest] RE: JavaScript error...
>
>  
>
> Another error…
>
> I was able to fix the problem using this code in the config:
>
>                         <config>
>
>                         <option name="ThrowExceptionOnScriptError"
> value="false"/>
>
>                                 </config>
>
> However, when I click on the button I get a “Please Wait” screen which
> comes up while the page is loading. The ‘resulting page’ of the button
> click is just the “Please Wait” screen instead of the actual page which
> loads afterwards, so Webtest can’t find any of the form elements I am
> trying to fill in on this page.
>
> Anyone have  any suggestions? I tried looking through the documentation
> for this and couldn’t find anything.
>
> Alex
>
> _____________________________________________
> *From:* Alex Ignatov
> *Sent:* Thursday, October 08, 2009 4:01 PM
> *To:* 'webtest@...'
> *Subject:* JavaScript error...
>
> Hey,
>
> I just started using webtest. I am running a demo test for State Farm on
> a form on their own website: http://www.statefarm.com.
>
> This may sound somewhat odd, but security on the computer I am using
> does not allow access to any website except statefarm.com through Webtest.
>
> When I invoke http://www.statefarm.com using
>
>                         <invoke url="_https://statefarm.com_"
> description="Go to State Farm"/>
>
> I get an error because there is a small image on the bottom of the page
> which is loaded from a different website, so the result is
>
> “JavaScript error loading page http://www.statefarm.com/: 
> ReferenceError: "DisplayImg" is not defined. (script in
> http://www.statefarm.com/ from (856, 32) to (856, 61)#856)”
>
> It doesn’t actually matter for the test that this happens because this
> piece of JavaScript is completely irrelevant to the form I am trying to
> access on the page.. However, the Invoke step fails and the test stops
> running.
>
> The only workaround I found for this is to disable Javascript before the
> Invoke and enable is again after the Invoke, like so:
>
>                         <enableJavaScript enable="false"/>
>
>                         <invoke url="https://statefarm.com"
> description="Go to State Farm"/>
>
>                         <enableJavaScript enable="true"/>
>
>                         <setInputField htmlid="sZip" value="60630" />
>
>                         <clickButton htmlid="getRateQuoteGo" />
>
> However, this causes an error in the “getRateQuoteGo” button click
> because it references javascript which wasn’t loaded when I invoked the
> page.
>
> Anyone know a way I can solve this? Can I somehow just ignore the
> javascript ReferenceError?
>
> Thanks,
>
> Alex
>


_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

RE: RE: JavaScript error...

by Alex Ignatov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Marc,

Thanks for the help. The script works fine when simulating Firefox. This is very odd because the actual site works fine in IE as well as FF. What do you think could be the issue here?

Alex

-----Original Message-----
From: webtest-admin@... [mailto:webtest-admin@...] On Behalf Of Marc Guillemot
Sent: Tuesday, October 13, 2009 1:15 AM
To: webtest@...
Subject: Re: [Webtest] RE: JavaScript error...

Hi,

do you use a recent build? Have you tried to simulate Firefox instead of
IE?

Cheers,
Marc.

Alex Ignatov a écrit :

> I tried that, but it doesn't do anything. Basically the page preloads
> content on the next page before opening it.
>
>  
>
> On the page, here's the important code which preloads the page and
> redirects once it is loaded (it basically submits a form once it's loaded):
>
>  
>
>                
>
>                 <script type="text/javascript" language="javascript">
>
>                                 function launchDoOnLoad() {
>
>                                                
> dialogs.modal.open("SFX_waiting_modal");
>
>                                                 //ddui.preload();
>
>                                                
> document.getElementById("MainForm").submit();
>
>                                 }                            
>
>                 </script>
>
> </head>
>
> <body onload="launchDoOnLoad();"
>
>                                                 class="sfx_icon  
> sfx_header_curved sfx_headerButtons_hide
> sfx_headerNavBar_hidesfx_no_icon sfx_layout_wide sfx_secondaryArea_hide">
>
>                
>
>                 <form id="MainForm" name="MainForm" method="post"
> action="/apps/autoquoteapply/execute.do?applicationName=Auto&city=Chicago&effectiveDate=20091008&endEffectiveDate=20091107&postalCode=60630&productId=PLJ37454G00®ionalOffice=01&stateAbbreviation=IL&orderScoreIndicator=true">
>
>                                
>
>  
>
> Webtest doesn't actually execute this code for some reason.
>
>  
>
>  
>
>  
>
>  
>
> *From:* Ali, Haneef [mailto:haneef.ali@...]
> *Sent:* Thursday, October 08, 2009 4:51 PM
> *To:* webtest@...; Alex Ignatov; webtest@...
> *Subject:* RE: JavaScript error...
>
>  
>
> Just do a sleep and then test it
>
>    <sleep  seconds="10" description="10 second sleep" />
>
>  
>
>  
>
> Haneef
>
>  
>
> *From:* webtest-admin@...
> [mailto:webtest-admin@...] *On Behalf Of *Alex Ignatov
> *Sent:* Thursday, October 08, 2009 2:26 PM
> *To:* Alex Ignatov; webtest@...
> *Subject:* [Webtest] RE: JavaScript error...
>
>  
>
> Another error...
>
> I was able to fix the problem using this code in the config:
>
>                         <config>
>
>                         <option name="ThrowExceptionOnScriptError"
> value="false"/>
>
>                                 </config>
>
> However, when I click on the button I get a "Please Wait" screen which
> comes up while the page is loading. The 'resulting page' of the button
> click is just the "Please Wait" screen instead of the actual page which
> loads afterwards, so Webtest can't find any of the form elements I am
> trying to fill in on this page.
>
> Anyone have  any suggestions? I tried looking through the documentation
> for this and couldn't find anything.
>
> Alex
>
> _____________________________________________
> *From:* Alex Ignatov
> *Sent:* Thursday, October 08, 2009 4:01 PM
> *To:* 'webtest@...'
> *Subject:* JavaScript error...
>
> Hey,
>
> I just started using webtest. I am running a demo test for State Farm on
> a form on their own website: http://www.statefarm.com.
>
> This may sound somewhat odd, but security on the computer I am using
> does not allow access to any website except statefarm.com through Webtest.
>
> When I invoke http://www.statefarm.com using
>
>                         <invoke url="_https://statefarm.com_"
> description="Go to State Farm"/>
>
> I get an error because there is a small image on the bottom of the page
> which is loaded from a different website, so the result is
>
> "JavaScript error loading page http://www.statefarm.com/: 
> ReferenceError: "DisplayImg" is not defined. (script in
> http://www.statefarm.com/ from (856, 32) to (856, 61)#856)"
>
> It doesn't actually matter for the test that this happens because this
> piece of JavaScript is completely irrelevant to the form I am trying to
> access on the page.. However, the Invoke step fails and the test stops
> running.
>
> The only workaround I found for this is to disable Javascript before the
> Invoke and enable is again after the Invoke, like so:
>
>                         <enableJavaScript enable="false"/>
>
>                         <invoke url="https://statefarm.com"
> description="Go to State Farm"/>
>
>                         <enableJavaScript enable="true"/>
>
>                         <setInputField htmlid="sZip" value="60630" />
>
>                         <clickButton htmlid="getRateQuoteGo" />
>
> However, this causes an error in the "getRateQuoteGo" button click
> because it references javascript which wasn't loaded when I invoked the
> page.
>
> Anyone know a way I can solve this? Can I somehow just ignore the
> javascript ReferenceError?
>
> Thanks,
>
> Alex
>


_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: RE: JavaScript error...

by Marc Guillemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alex,

do you use a recent build?

WebTest (in fact HtmlUnit) simulates the browsers. The simulation is not
the same for FF and IE as these browsers behave differently
(particularly concerning JavaScript interpretation). Firefox's
simulation is currently probably more advanced than IE's simulation what
would explain that you have found a case when it's not working when
simulation IE. Finding (and fixing) what is not done correctly while
simulating IE is possible... but would require a bit time to investigate.

Cheers,
Marc.

Alex Ignatov a écrit :

> Marc,
>
> Thanks for the help. The script works fine when simulating Firefox. This is very odd because the actual site works fine in IE as well as FF. What do you think could be the issue here?
>
> Alex
>
> -----Original Message-----
> From: webtest-admin@... [mailto:webtest-admin@...] On Behalf Of Marc Guillemot
> Sent: Tuesday, October 13, 2009 1:15 AM
> To: webtest@...
> Subject: Re: [Webtest] RE: JavaScript error...
>
> Hi,
>
> do you use a recent build? Have you tried to simulate Firefox instead of
> IE?
>
> Cheers,
> Marc.
>
> Alex Ignatov a écrit :
>> I tried that, but it doesn't do anything. Basically the page preloads
>> content on the next page before opening it.
>>
>>  
>>
>> On the page, here's the important code which preloads the page and
>> redirects once it is loaded (it basically submits a form once it's loaded):
>>
>>  
>>
>>                
>>
>>                 <script type="text/javascript" language="javascript">
>>
>>                                 function launchDoOnLoad() {
>>
>>                                                
>> dialogs.modal.open("SFX_waiting_modal");
>>
>>                                                 //ddui.preload();
>>
>>                                                
>> document.getElementById("MainForm").submit();
>>
>>                                 }                            
>>
>>                 </script>
>>
>> </head>
>>
>> <body onload="launchDoOnLoad();"
>>
>>                                                 class="sfx_icon  
>> sfx_header_curved sfx_headerButtons_hide
>> sfx_headerNavBar_hidesfx_no_icon sfx_layout_wide sfx_secondaryArea_hide">
>>
>>                
>>
>>                 <form id="MainForm" name="MainForm" method="post"
>> action="/apps/autoquoteapply/execute.do?applicationName=Auto&city=Chicago&effectiveDate=20091008&endEffectiveDate=20091107&postalCode=60630&productId=PLJ37454G00®ionalOffice=01&stateAbbreviation=IL&orderScoreIndicator=true">
>>
>>                                
>>
>>  
>>
>> Webtest doesn't actually execute this code for some reason.
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>
>> *From:* Ali, Haneef [mailto:haneef.ali@...]
>> *Sent:* Thursday, October 08, 2009 4:51 PM
>> *To:* webtest@...; Alex Ignatov; webtest@...
>> *Subject:* RE: JavaScript error...
>>
>>  
>>
>> Just do a sleep and then test it
>>
>>    <sleep  seconds="10" description="10 second sleep" />
>>
>>  
>>
>>  
>>
>> Haneef
>>
>>  
>>
>> *From:* webtest-admin@...
>> [mailto:webtest-admin@...] *On Behalf Of *Alex Ignatov
>> *Sent:* Thursday, October 08, 2009 2:26 PM
>> *To:* Alex Ignatov; webtest@...
>> *Subject:* [Webtest] RE: JavaScript error...
>>
>>  
>>
>> Another error...
>>
>> I was able to fix the problem using this code in the config:
>>
>>                         <config>
>>
>>                         <option name="ThrowExceptionOnScriptError"
>> value="false"/>
>>
>>                                 </config>
>>
>> However, when I click on the button I get a "Please Wait" screen which
>> comes up while the page is loading. The 'resulting page' of the button
>> click is just the "Please Wait" screen instead of the actual page which
>> loads afterwards, so Webtest can't find any of the form elements I am
>> trying to fill in on this page.
>>
>> Anyone have  any suggestions? I tried looking through the documentation
>> for this and couldn't find anything.
>>
>> Alex
>>
>> _____________________________________________
>> *From:* Alex Ignatov
>> *Sent:* Thursday, October 08, 2009 4:01 PM
>> *To:* 'webtest@...'
>> *Subject:* JavaScript error...
>>
>> Hey,
>>
>> I just started using webtest. I am running a demo test for State Farm on
>> a form on their own website: http://www.statefarm.com.
>>
>> This may sound somewhat odd, but security on the computer I am using
>> does not allow access to any website except statefarm.com through Webtest.
>>
>> When I invoke http://www.statefarm.com using
>>
>>                         <invoke url="_https://statefarm.com_"
>> description="Go to State Farm"/>
>>
>> I get an error because there is a small image on the bottom of the page
>> which is loaded from a different website, so the result is
>>
>> "JavaScript error loading page http://www.statefarm.com/: 
>> ReferenceError: "DisplayImg" is not defined. (script in
>> http://www.statefarm.com/ from (856, 32) to (856, 61)#856)"
>>
>> It doesn't actually matter for the test that this happens because this
>> piece of JavaScript is completely irrelevant to the form I am trying to
>> access on the page.. However, the Invoke step fails and the test stops
>> running.
>>
>> The only workaround I found for this is to disable Javascript before the
>> Invoke and enable is again after the Invoke, like so:
>>
>>                         <enableJavaScript enable="false"/>
>>
>>                         <invoke url="https://statefarm.com"
>> description="Go to State Farm"/>
>>
>>                         <enableJavaScript enable="true"/>
>>
>>                         <setInputField htmlid="sZip" value="60630" />
>>
>>                         <clickButton htmlid="getRateQuoteGo" />
>>
>> However, this causes an error in the "getRateQuoteGo" button click
>> because it references javascript which wasn't loaded when I invoked the
>> page.
>>
>> Anyone know a way I can solve this? Can I somehow just ignore the
>> javascript ReferenceError?
>>
>> Thanks,
>>
>> Alex
>>
>
>
> _______________________________________________
> WebTest mailing list
> WebTest@...
> http://lists.canoo.com/mailman/listinfo/webtest
> _______________________________________________
> WebTest mailing list
> WebTest@...
> http://lists.canoo.com/mailman/listinfo/webtest
>

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest