Ian, if the application has changed, the old version doesn't really matter anymore.
If you find that WebTest doesn't behave as it should when clicking the button, please provide the necessary information to reproduce the problem. Cheers, Marc. -- Web: http://www.efficient-webtesting.com Blog: http://mguillem.wordpress.com Ian Phillips wrote: > Hi. > > I had a test that worked but a change in the code has now broken it. I > had a simple <clickButton label="Shop now!"/> statement before but this > no longer works. The report says it has clicked the button but fails on > the next statement in the script as the same page is displayed, not the > expected one. > > When using the WTR is suggests this <clickButton label="Shop now"/> but > this does not work. > > Any ideas how to get this to work? > > > > This is the code OLD and NEW. > > OLD > > <form id="ok" class="generalForm" > action="jfn?entry=guest&orgTypeCode=RESIDENTIAL" method="post" name="ok"> > <span class="button"> > <input class="submit" type="submit" value="Shop now!" > name="submit"/> > </span> > </form> > > > > NEW > > > <form id="ok_shopNow" class="generalForm" method="post" name="ok_shopNow"> > <span class="button"> > <input class="submit" type="submit" > onclick="javascript:ok_shopNow.action='jfn?entry=guest&orgTypeCode=RESIDENTIAL¤cy='+ok_shopNow.currencyChoice.options[ok_shopNow.currencyChoice.selectedIndex].value" > value="Shop now" name="submit"/> > </span> > <span id="menuLvelOneCurrencyContainer"> > </span> > </form> > > > Do I need to do something to fire the onclick event? > > Ian _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

