Oh, duh, you could see the actual button by going to our "tour": https://secure.primek.com/erStart/step1.jsp and clicking thru til you get to Step 4, and the button in question is the "Accept Plan Documents" button.
Thanks, Lisa On Mon, Sep 13, 2010 at 10:53 AM, Lisa Crispin <[email protected]>wrote: > Hi Marc, > We already have easyajax="true" in our config.xml. > > Here's the JS, do you need something more than this? Do you need a whole > functioning HTML page? > <script language="javascript" type="text/javascript"> > var submitButtonClickCount = 0; > function submitButtonSingleClick() { > submitButtonClickCount++; > if (submitButtonClickCount > 1) { > alert('This page has already been submitted!'); > if (isMicrosoft()) { > event.returnValue = false; > } > return false; > } else { > if (isMicrosoft()) { > event.returnValue = true; > } > return true; > } > } > > Thanks, > Lisa > > > On Mon, Sep 13, 2010 at 1:30 AM, Marc Guillemot <[email protected]>wrote: > >> Hi Lisa, >> >> without a complete example, it's not possible to say what goes wrong: no >> idea what happens inside the js function (same problem in your clickLink >> issue). >> >> I'm not aware of any change that could be the cause of this regression. >> You can try to set the undocumented config attribute easyajax="true" if this >> is a timing issue. >> >> Cheers, >> Marc. >> -- >> HtmlUnit support & consulting from the source >> Blog: http://mguillem.wordpress.com >> >> >> >> >> On 09/09/2010 09:59 PM, Lisa Crispin wrote: >> >>> There's another button which is getting the same issue: >>> <input type="submit" onclick="javascript: finishLaterSingleClick();" >>> value="Finish Later" id="finishLater" name="finishLater"> >>> >>> I'm guessing this is something to do with the javascript, but this is a >>> test that's been running fine for almost 6 years thru many versions of >>> webtest. >>> thanks >>> Lisa >>> On Thu, Sep 9, 2010 at 12:32 PM, Lisa Crispin <[email protected] >>> <mailto:[email protected]>> wrote: >>> >>> We've been using WebTest for more than 6 years and our scripts run >>> multiple times per day via hudson. >>> >>> We have some extra time so I wanted to upgrade to the latest >>> version. Currently we have version R_1762. When I installed R_1809, >>> the scripts that click this button started failing. There's no error >>> message, it just doesn't do anything, so the next step fails because >>> it didn't submit the page and get to the next page in the UI. >>> >>> The html is: >>> <input name="submitButton" id="submitButton" type="submit" >>> value="Accept Plan Documents" onclick="javascript: >>> submitButtonSingleClick();"/> >>> >>> The script has: >>> <clickButton description="click accept plan documents button" >>> name="submitButton" /> >>> >>> I searched around in the archives, found a mention of >>> enableJavaScript. We've never used that, but I tried putting it in, >>> it didn't help. There's obviously javascript on the button, but >>> since it hasn't caused problems in the past 6 years, I'm surprised >>> that it suddenly would. >>> >>> We'd like to stay current with our WebTest version. This is the only >>> issue I've found with the new version (though I still have more >>> tests to run and make sure). Please advise. It's only the one >>> button, so if we need to change the html, that wouldn't be too bad, >>> we just need to know how to change it. >>> Thanks, >>> Lisa >>> >>> -- >>> Lisa Crispin >>> Co-author with Janet Gregory, _Agile Testing: A Practical Guide for >>> Testers and Agile Teams_ (Addison-Wesley 2009) >>> Contributor to _Beautiful Testing_ (O'Reilly 2009) >>> http://lisacrispin.com >>> @lisacrispin on Twitter >>> >>> >>> >>> >>> -- >>> Lisa Crispin >>> Co-author with Janet Gregory, _Agile Testing: A Practical Guide for >>> Testers and Agile Teams_ (Addison-Wesley 2009) >>> Contributor to _Beautiful Testing_ (O'Reilly 2009) >>> http://lisacrispin.com >>> @lisacrispin on Twitter >>> >>> >> >> _______________________________________________ >> WebTest mailing list >> [email protected] >> http://lists.canoo.com/mailman/listinfo/webtest >> > > > > -- > Lisa Crispin > Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers > and Agile Teams_ (Addison-Wesley 2009) > Contributor to _Beautiful Testing_ (O'Reilly 2009) > http://lisacrispin.com > @lisacrispin on Twitter > > -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) Contributor to _Beautiful Testing_ (O'Reilly 2009) http://lisacrispin.com @lisacrispin on Twitter

