and I can click this button by firewatir on another computer. I use watir 1.6.2 with ruby 186-27
On Nov 5, 5:04 am, Paul Rogers <[email protected]> wrote: > this uses an onmousedown event to execute the javascript. > > try > > ie.button(:id,"PostButton").fire_event('onMouseDown') # case of this > probably matters > > Paul > > > > > > On Wed, Nov 4, 2009 at 11:57 AM, jnxgn <[email protected]> wrote: > > > I cannot click the button with the id of PostButton with the code: > > ie.button(:id,"PostButton").click > > > Any help is highly appreciated. > > > <div style="margin-bottom:4px;"> > > <input type="hidden" name="draftid" id="draftid" value="0" /> > > <input type="hidden" name="articleid" id="articleid" value="0" > > /> > > <input type="hidden" name="action" id="action" value="0" /> > > <input type="button" id="PostButton" class="btn1" > > style="cursor:pointer;" value="发表" onclick="PostArticleButtonClick > > (this)" onmousedown="document.getElementById('inputsummit').value = > > 0;"/> > > <input name="Neweditarticle2008_1:DraftButton" > > type="button" id="Neweditarticle2008_1_DraftButton" value="保存草稿" > > style="cursor:pointer;" class="btn1 btnn" onclick="PostDraftButtonClick > > (this)" /> > > > > > <span id="AdminDraftLink"><a href="http://post.blog.hexun.com/ > > i/mydraft.aspx?Blogname=13051424<http://post.blog.hexun.com/%0Ai/mydraft.aspx?Blogname=13051424>" > > target="_blank" > > style="color:#FB5D00;">查看草稿箱</a></span> > > > </div>- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
