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 7732629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:46:43+00:00 2026-06-01T06:46:43+00:00

Using Selenium IDE, I am trying to locate a link within a table row.

  • 0

Using Selenium IDE, I am trying to locate a link within a table row. The table rows are dynamically generated. Each row has some cell with text content and a cell with possibly two or more links.

What I’d like to do is to create an automated test that clicks a specific link within a specific row as referenced by a specific text. For example, on the table below:

<html>
<body>
<table border="1">
 <tr>
   <td>
    Hello World!
   </td>
   <td>
    Type Greeting
   </td>
   <td>
    <a href="www.foo.com/view/id=123456">View</a>
    <a href="www.foo.com/delete/id=123456">Delete</a>
   </td>
 </tr>
 <tr>
   <td>
    Buenos Dias!
   </td>
   <td>
    Type Greeting 
   </td>
   <td>
    <a href="www.foo.com/view/id=789101">View</a>
    <a href="www.foo.com/delete/id=789101">Delete</a>
   </td>
 </tr>
</table>
</body>
</html>

The scenario is, on a previous page I add data “Buenos Dias!”. The next page will display a table of all data added. I want to be able to click on the “View” link of the data that was just added (in this case, the “Buenos Dias!” entry).

What would be a good way to locate the “View” link by referencing the text “Buenos Dias!”?

I am able to locate the cell which contains the text:

//td[text()="Buenos Dias!"] 

But I want to use it somehow as a reference for locating its respective “View” link from the table. I tried out sibling formats (following, preceding) and I cant seem to get it to work right. Using an absolute xpath (html/body/table/tbody/tr[1]/td[3]/a[1]) will not work as the data could change and the entry appear on a different row.

Thanks in advance and let me know if you need more information.

  • Selenium IDE 1.7.2
  • Firefox 9.0.1
  • Mac OS X Lion 10.7.3
  • 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-01T06:46:45+00:00Added an answer on June 1, 2026 at 6:46 am

    Use:

    (//td[normalize-space() ="Buenos Dias!"])[1]/following-sibling::td[2]/a[. = 'View']
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using selenium IDE to do some web app testing. I have
I'm trying to do set up some Selenium WebTests using PHPUnit, but php is
I am using Selenium IDE to record some scenarios and wanted to check if
I am trying to test a web page using Selenium IDE. Am new to
I'm trying to record a functional test using the selenium IDE plugin for Firefox
I am using Selenium IDE Firefox plugin to create some test cases. I click
I'm currently using Selenium IDE to fill a form. The form has a select
I'm using the selenium IDE and the Selenium-Fitnesse Bridge fixture and I'm trying to
I recorded a script using the Selenium IDE extension for Firefox, and I would
I have recorded a very simple test case Using the Selenium IDE integrated with

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.