For button click on your page example this is correct way to click it: find(:xpath, "//*[@id="sImage1"]").click
2012/11/9 john smith <[email protected]> > ive been trying to look up xpath and css selectors. i have my program > fill out the email and all i need to figure out now is to press the send > button. but its not like the other buttons i have used. > > <table class="CLiKSTbl" width="100%" cellspacing="0" cellpadding="0" > border="0"> > <td cellspacing="0" cellpadding="0"> </td> > <tr><td class="CLiKSLineNmlbrown" colspan="7" width="100%"></td></tr> > <tr cellspacing="0" cellpadding="0"> > <td class="CLiKStdleft" width="20%" cellspacing="0" > cellpadding="0"> </td> > <td class="CLiKStdleft" width="1%" cellspacing="0" > cellpadding="0"> </td> > <td class="CLiKStdleft" colspan="76%" cellspacing="0" > cellpadding="0" width="0%" > > <Table width="0%" cellspacing ="0" cellpadding="0" border="0"> > > <tr><td colspan="3"> </td></tr> > <tr> > <td width="0%"> </td> > <td width="0%"> > <a > > href="javascript:exit('/online/valdoc/ea_askaqsend?__i=1352473481343-4376714975339252553')"><img > src="/01/images/pg3_but2_new.gif" border="0" align="top"/></a> > <!-- > <TABLE BORDER=0 ><TR> > <TD><INPUT TYPE=BUTTON class="CliKSbttn" VALUE="Send" > > onClick="javascript:exit('/online/valdoc/ea_askaqsend?__i=13524734813433775119952793994132')"></TD> > </tr></table>--> > > that is the code from the pages source file. this is the send button i > need to click. but it says cannot find button or link with value send. > so i started looking into href, xpath, and css tried like 100 different > things and still no dice. any suggestions? what kind of button is it > would probably help a lot? i dont know how to tell if its css or xpath. > > -- > Posted via http://www.ruby-forum.com/. > > -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
