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

Reply via email to