Hi Mark.

I have attached the page with the button that is not clicked by WebTest.

We have the 2.6 version of WebTest installed.

This is the line of code we are using to click the button:  <clickButton
label="Shop now"/>


 The webtest report says the button has been clicked successfully but the
following page is not loaded and so the following step fails.

I have tried using xpath but hit a bug in WebTest.

Thanks

Ian


On Fri, Nov 14, 2008 at 9:41 AM, Marc Guillemot <[EMAIL PROTECTED]> wrote:

> 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&currency='+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
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
Title: Myshape Consumer
.
This could be a running news text line...

USD EUR


Login Actor Additional Information
joe Residential Administrator Administrator of John Dixon
james Residential Administrator Administrator of James Steed
0660100034 Residential Administrator Administrator of Jennifer Ellison Home
0660100032 Residential Subscriber Subscriber of Jennifer Ellison Home
tammy
stan
Residential Administrator Administrator of Tammy Smith Home
steve
julie
Residential Subscriber Subscriber of Tammy Smith Home
georges SOHO Administrator Administrator of James and Partners
jimmy SOHO Subscriber Subscriber of James and Partners
jackie SOHO Administrator Administrator of Filibuster
acctmgr Telco Customer Care User Top level of Shape Telecom
acctmgr2 Telco Customer Care User Top level of Shape Telecom
senior_acctmgr Telco Administrator Top level of Shape Telecom
pierre Telco Administrator Top level of Shape Telecom
holway Telco Customer Care Admin Customer Care department of Shape Telecom
mike Telco Customer Care Admin Managed team in Customer Care department
robin Telco Customer Care User Managed team in Customer Care department
peter Telco Customer Care User Call center team in Customer Care department
john Telco Customer Care User Call center team in Customer Care department
diana Telco Administrator Sales department of Shape Telecom
.
.

Reply via email to