Hi, Thanks for your help : this fix it browser.link(:xpath,"//i...@src='/ button_genomfor_fund.gif']/..").click
As this url is generated each time I can not use it: browser.link(:href,"https://www.Race.com/swiki/ 4phoyzf6u9qheb2gj036471fj?_s=DeMjZhiczxzzG...").click Have a nice WE. B.R H.E On Mar 7, 9:28 am, windy <[email protected]> wrote: > if you can use href attribute, try > browser.link(:href,"https://www.Race.com/swiki/4phoyzf6u9qheb2gj036471fj?_s=DeMjZhiczxzzG...").click > or you can use xpath, code like > browser.link(:xpath,"//i...@src='/button_genomfor_fund.gif']/..").click > > Sun, 07 Mar 2010 15:31:42 +0800 HeG <[email protected]> д : > > > Hi, > > > I want to click on the "image/button" ( <img alt="" src="/ > > button_genomfor_fund.gif"/> ) > > > Any advice how I can code this with watir. > > > Code: > > > <form accept-charset="utf-8" method="post" action="https:// > >www.Race.com/swiki/4phoyzf6u9qheb2gj036471fj" id="form"><a > > onclick="document.forms['form'].submit()" href="https://www.Race.com/ > > swiki/4phoyzf6u9qheb2gj036471fj? > > _s=DeMjZhiczxzzGeAh&_k=pDVYZqbD&1"><img alt="" src="/ > > button_genomfor_fund.gif"/></a><a > > onclick="document.forms['form'].submit()" href="https://www.Race.com/ > > swiki/4phoyzf6u9qheb2gj036471fj? > > _s=DeMjZhiczxzzGeAh&_k=pDVYZqbD&2"><img alt="" src="/ > > button_avbryt_fund.gif"/></a><div><input name="_s" > > value="DeMjZhiczxzzGeAh" type="hidden" class="hidden"/><input > > name="_k" value="pDVYZqbD" type="hidden" class="hidden"/> > > </div> > > > thanks for your help / advice > > > B.R > > H.E -- 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
