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

  • SEARCH
  • Home
  • 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 8342677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:50:28+00:00 2026-06-09T05:50:28+00:00

Looking for a selenium selector that I can use the text in the first

  • 0

Looking for a selenium selector that I can use the text in the first td to selected the input in the second.

<tr><th>asdf</th><td><input type="text"></td></tr>
<tr><th>qwer</th><td><input type="text"></td></tr>
<tr><th>rtyu</th><td><input type="text"></td></tr>
<tr><th>fghj</th><td><input type="text"></td></tr>
  • 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-09T05:50:30+00:00Added an answer on June 9, 2026 at 5:50 am

    Use this as a document:

    <html>
    <tr><td>asdf</td><td><input type="text"/></td></tr>
    <tr><td>qwer</td><td><input type="text"/></td></tr>
    <tr><td>rtyu</td><td><input type="text"/></td></tr>
    <tr><td>fghj</td><td><input type="text"/></td></tr>
    </html>
    

    Use this as a xpath expression:

    //tr/td[text()="asdf"]//following-sibling::td
    

    Here is a nice page where you can test it online and play around till you’ve got the correct syntax:
    http://www.mizar.dk/XPath/Default.aspx

    Take look at the following-sibling xpath example and the Selenium locator reference.

    Answer Updated!

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

Sidebar

Related Questions

Looking for a control that allows to select one text value at a time
I'm looking for automated Functional Testing tools that can manipulate SharePoint sites, libraries, and
We looking to use Selenium grid to parallelize our tests but some of our
We use SpecFlow with Selenium successfully to test our HTML applications and are looking
I'm looking to execute a Selenium 2 test against the Nightly browser (FireFox 64bit).
I've been looking into setting up a Selenium test suite recently but all of
I looking into making a kind of robot testing browser. Like Selenium, but one
I am looking for a way by which I can automate my application build
I need to find an element in selenium 2 and I know that the
The page I'm looking at contains : <div id='1'> <p> text 1 <h1> text

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.