I have the following html code. I want to write the script to click the
'Edit'/Delete' link of particular book. These links are coming dynamically
whener we add data from application.

I am unable to write it because every time it clicks the first book's 'Edit'
link. One solution for this I know that I can use href to click the link but
problem with this solution is id from the href is changes.

Please help.

<tr align="left">
                                <td width="25%"><b>Book Name</b></td>
                                <td width="25%"><b>Author</b></td>
                                <td width="25%"><b>Edition</b></td>
                                <td width="25%"><b>Contact Person</b></td>

                                <td width="25%"></td>
                                <td width="25%"></td>
                    </tr>
                        
                        <tr>
                                <td width="25%"><a
href='AppControl?pg=ListBooks&ret=display&bookID=703'>7 Habits of
highly effective pepole.</a></td>
                                <td width="25%"> Stephen covey</td>
                                <td width="25%"> 2</td>

                                <td width="25%"> Admin Ashish</td>
                                
                                <td width="25%"><a
href='AppControl?pg=ListBooks&ret=edit&bookID=703'>Edit</a></td>
                                <td width="25%"><a
href='javascript:confirmDelete("AppControl?pg=ListBooks&ret=delete&bookID=703")'>Delete</a></td>
                                
                        </tr>
                        
                        <tr>
                                <td width="25%"><a
href='AppControl?pg=ListBooks&ret=display&bookID=720'>DBMS</a></td>

                                <td width="25%"> Korth</td>
                                <td width="25%"> Second</td>
                                <td width="25%"> Admin admin</td>
                                
                                <td width="25%"><a
href='AppControl?pg=ListBooks&ret=edit&bookID=720'>Edit</a></td>
                                <td width="25%"><a
href='javascript:confirmDelete("AppControl?pg=ListBooks&ret=delete&bookID=720")'>Delete</a></td>

                                
                        </tr>


Regards

Swapnal.

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
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