Hey guys, I'm still trying to resolve a problem and I REALLY need a
solution fast because I'm supposed to be giving a demonstration of
Webtest for State Farm! The problem doesn't occur when I try to create
the same test in Selenium or Sahi (which is why I think it should be
solveable)..

When I have Webtest click a certain button on http://www.statefarm.com
(type in the zip code and hit submit for an auto rate quote), a 'please
wait' screen comes up which preloads the next page with this code:

                <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=Chicag
o&effectiveDate=20091008&endEffectiveDate=20091107&postalCode=60630&prod
uctId=PLJ37454G00&regionalOffice=01&stateAbbreviation=IL&orderScoreIndic
ator=true">
                                

So basically a form is just submitted when the page is preloaded.

PROBLEM: Webtest only recognizes the 'Please Wait' page, and not the
page which the browser redirects to.

If you can help me out with this, I would greatly appreciate it!

Alex

Reply via email to