WET addresses this problem. You can identify objects using multiple 
parameters by using:

Browser(...).Link("href:=/.*menu_item", "src:=.*list_add")

and so on.

Thanks
Raghu

Max Kononovich wrote:

> Dear all,
>  
> I have the following tabletree structure for each of the element (see 
> below). And I have to click the links with the specified operation 
> (edit, add or delete) and menu id. I know the operation type.  How I 
> can get menu id from tabletree and how then I can click on the link 
> having this two variables?
> It will be great if I can define somthig like this ie.link(:url, 
> /operation+id/).click. If it possible?
>  
> <tr id='tr_122'>
> <td>
> <input type="checkbox" disabled="disabled" name="mnu_id[122]" 
> value="-1" />
> </td>
> <td class="td_tree" width="0"  >
> <img align="top" border="0" alt="" src="/images/x.gif" height="21" 
> width="17" />
> <img
> src="/images/join.gif"
> alt="" align="top" border="0" height="21" width="17" />
> <span id="mnu_122" class="tree_leaf_b" 
> onclick="mayBeAction('122');">max_level1</span>
> </td>
> <td width="100%"><div class="fill"></div></td>
> <td class="td_actions" width="0">
> <img src="/images/list_up_inact.gif" width="19" height="19" 
> align="top" title="menus_item_down" alt="menus_item_down" />&nbsp;
> <a 
> href="http://xxx.xxx.net/admin/menus/?operation=menu_item_down&menu_item_id=122
>  
> <http://xxx.xxx.net/admin/menus/?operation=menu_item_down&menu_item_id=122>"  
> ><img src="/images/list_down.gif" width! ="19" height="19" align="top" 
> title="menus_item_down" alt="menus_item_down" /></a>&nbsp;
> <a href="http://xxx.xxx.net/admin/menus/edit_item/?menu_item_id=122";  
> ><img src="/images/list_edit.gif" width="19" height="19" align="top" 
> title="menus_edit_item" alt="menus_edit_item" /></a>&nbsp;
> <a href="http://xxx.xxx.net/admin/menus/add_item/?menu_item_id=122"; 
> ><img src="/images/list_add.gif" width="19" height="19" align="top" 
> title="menus_add_item" alt="menus_add_item" /></a>&nbsp;
> </td>
> </tr>
>
> ------------------------------------------------------------------------
> Вы уже с Yahoo!?
> Испытайте обновленную и улучшенную Yahoo! Почту 
> <http://us.rd.yahoo.com/mail_ru/taglines/*http://ru.mail.yahoo.com>!
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Wtr-general mailing list
>[email protected]
>http://rubyforge.org/mailman/listinfo/wtr-general
>  
>


-- 
Qantom Software

http://www.qantom.com
Ph : 91-80-26799269 Xtn. 125
sip : [EMAIL PROTECTED]
--

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

Reply via email to