On Jul 28, 10:06 pm, Swapnal <swapnal.sa...@gmail.com> wrote:
> Hi,
>
> In this application when we add user every user will have the 'Edit' and
> 'Delete' link.
>
> <span class="savedentity">a&nbsp;-&nbsp;associate</span></td>
>
> >                                                 <tr bgcolor="#f6f2f6">
> >                                                 <td width="33%">
>
> >                                                 <span class="toolBar"><a
>
> href="AppControl?pg=List> Users&ret=Edit&id_user=1">Edit</a>|
> >                                                 <a
>
> href='javascript:confirmDelete("AppControl?pg=List
>
> > Users&ret=Delete&id_user=1")'>Delete</a></span>
>
> I want to write the code to click the 'Edit' link from above code.
>
> How can I write it?
>

based on just the code fragent above?

   browser.link(:text, 'Edit').click

if that doesn't answer your question, and given the thread I expect it
won't, then please go back and answer EACH of the questions I asked in
my prior post.  Most importantly, how do you as a user know which
'edit' link you want to click?    and if your answer is 'for the user
I just created' or something along those lines, then understand that
my response will then be something like 'how do you know when using
the application manually, which is the edit link for the user you just
created.  Remember, in the code sample you gave, those of us who don't
know your application, have NO IDEA which text that would be displayed
represents a username..
--~--~---------~--~----~------------~-------~--~----~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to