You have a javascript event on the table. How about this:
ie.table(:class,'p-button-special').fire_event('onclick')

If that doesn't work, make sure the table is recognized by flashing it.

-Charley

On Wed, Nov 12, 2008 at 8:21 AM, JArkelen <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I have a button I need to click on with the following code:
>
> <div style="float:left; padding-top:4px; padding-left:4px;">
>  <table cellspacing="0" onclick="submitSearch('GB','en')" class="p-
> button-special">
>    <tr>
>      <td>
>        <div id="search-button" align="center">Search</div>
>      </td>
>    </tr>
>  </table>
> </div>
>
> I tried both ie.div(:id, 'search-button').click and ie.table(:class,
> 'p-button-special').click, but no succes.
> Any suggestions?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to