Hah. Since I did not know what the rest of the page contained, or what the _javascript_ function did, I had this long, complex explanation of how you could go about setting up your own call to that _javascript_ function in Watir. However, now that I have seen the page, and examined the _javascript_, the answer is simple:

You don't need to click the button. The "go" function simply redirects you to another page, as though it were a regular link.

In your case, you can get exactly the same effect by just doing (if "my_ie" is your instance of IE):

    my_ie.goto("http://www.wptonline.com/register/personal.do")



That's all you need.

Lonny Eachus
==========



David Solis wrote:
Hello,
 
I'm not sure how to handle clicking on "Open Account" in the lines of HTML below. How do I click on '/register/personal.do'
<tr>       <td class="memboxlink" width="128" height="28" onmouseover="membox_overlink(this);" onMouseOut="membox_outlink(this)" onclick="go('/register/personal.do')">Open Account                                                                                                      
        </td>  </tr>    <tr>      <td class="memboxlink" width="128" height="28" onmouseover="membox_overlink(this);" onMouseOut="membox_outlink(this)" onclick="go('/help/support.do')">Support                                                                                                              </td>    </tr>
 

_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general



_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to