Darin Ginther
2009-Feb-02 22:26 UTC
how-to click javascript button - and debug noob questions
Source: <a href="javascript:document.__main.__cmdfunc.value=''launchPage()'';document.__main.submit();" class="button"><img src="images/start-my-page.jpg"/></a> Contains a href to a javascript function, has an image as a clickable element. I''m trying to trigger the click by an image reference: ie.button(:src, /start-my-page/).click but I exit and get a "1" return code. Questions: 1) What is the correct means to click this image? 2) Is there a way to get a more meaningful error than simply a return code of 1? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---