Hi, assertButtonPresentWithText works for
<button>some text</button> For your need, try: assertElementPresentByXPath("[EMAIL PROTECTED]'button' and @value='OK']"); ++ Julien --- [EMAIL PROTECTED] a écrit : > I am trying to assert the presence of a button with > value "OK". Since > assertButtonPresent only accepts a buttonId as an > argument I tried to use > assertButtonPresentWithText but this fails. > > The HTML for the button looks like this: > > <input type="button" > class="button_orange_7px_margin" > onclick="javascript:submitForm(this.form, > 'submitSearchInfo', null, > false)" value="OK" tabindex="5"/> > > > and the assertion code I am using looks like this: > > assertButtonPresentWithText("OK"); > > I would very much appreciate a hint on what I am > doing wrong or if there > are any other issues. > > Best regards > /Johan > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio > 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > JWebUnit-users mailing list > JWebUnit-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ JWebUnit-users mailing list JWebUnit-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jwebunit-users