Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8786245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:34:12+00:00 2026-06-13T21:34:12+00:00

Below is the html code which is the structure of my .html page. I

  • 0

Below is the html code which is the structure of my .html page. I have a very long page but for sample purposes I have only three rows, whereas in the actual page I have hundreds

My question is: What is the best way to accomplish the following task:

How would I click on Add to Basket for the employee name John Steven (or any other name)?

 <table class="gvlist" cellspacing="0" border="0" id="ctl00_ctl00_Features_Features_ContentList_gv">
        <tr class="gvheader">
            <th>
                Employee Name
            </th>
            <th>
                Topic
            </th>
            <th>
                Add Employee
            </th>
        </tr>
        <tr class="gvrow">
            <td>
                <a id="ctl00_employee_List_gv_ctl02_lnkPage" class="gvtitle" href="#" target="_blank">
                    Erich Schulz</a>
            </td>
            <td>
                <ul class="topiclist">
                    <li class="ListItem" style="list-style: none"><a id="ctl00_employee_List_gv_ctl02_lbTopic"
                        class="InlineItemText" href="#">R&D</a> </li>
                </ul>
            </td>
            <td>
                <a id="ctl00_employee_List_gv_ctl02_lnkSelect" href="#" class="addpage">Add to Basket
                    List</a>
            </td>
        </tr>
        <tr class="gvrow">
            <td>
                <a id="ctl00_employee_List_gv_ctl03_lnkPage" class="gvtitle" href="#" target="_blank">
                    John Steven</a>
            </td>
            <td>
                <ul class="topiclist">
                    <li class="ListItem" style="list-style: none"><a id="A2" class="InlineItemText" href="#">
                        Development</a> </li>
                </ul>
            </td>
            <td>
                <a id="ctl00_employee_List_gv_ctl03_lnkSelect" href="#" class="addpage">Add to Basket
                    List</a>
            </td>
        </tr>
        <tr class="gvrow">
            <td>
                <a id="ctl00_employee_List_gv_ctl04_lnkPage" class="gvtitle" href="#" target="_blank">
                    John McAfee</a>
            </td>
            <td>
                <ul class="topiclist">
                    <li class="ListItem" style="list-style: none"><a id="A5" class="InlineItemText" href="#">
                        Tech</a> </li>
                </ul>
            </td>
            <td>
                <a id="ctl00_employee_List_gv_ctl04_lnkSelect" href="#" class="addpage">Add to Basket
                    List</a>
            </td>
        </tr>
    </table>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:34:13+00:00Added an answer on June 13, 2026 at 9:34 pm

    there might be many possibilities but i will go with xpath

    .//a[contains(.,'John McAfee')]/ancestor::tr//a[@class='addpage']
    

    where ‘John McAfee’ can be passed via variable

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a very simple HTML code which is listed below. Written in
I have below is the html code for TD which gets appended after matching
i have the below structure in HTML, which i use to create a tree
i have a page which has the HTML code of: <div id=WF120412> <div id=F120412
Hi All below is the code which i use. <!DOCTYPE html PUBLIC -//W3C//DTD XHTML
I have below html code in my aspx. <input type=hidden id=medicalLink value='<a href=/forms/contactus.aspx >Contact
I have below html code in one of the opensource project. <form action=/wiki/bin/view/Main/Search> <div
I'd like to retrieve the image source within the below HTML code block, but
Below are the options that I have in my HTML code: <label id="subn"> <select
I have below code in html. <li class=selected runat=server id=lihome><a href=/ISS/home.aspx title=Home><span>Home</span></a></li> Now I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.