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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:41:16+00:00 2026-06-14T11:41:16+00:00

Below is my code Below is a tag. <TR id=oldcontent bgcolor=#D0D0D0> <TD id=ignore style=vertical-align:middle>

  • 0

Below is my code

Below is a tag.

    <TR id="oldcontent" bgcolor="#D0D0D0">
    <TD id="ignore" style="vertical-align:middle">      
    <input type="checkbox" name="selectedId" value="22047"onclick="updateSelectionList('<%=campaign.getId()%>')">
    </TD>
   <TD  id="oldcontent">Code</TD>
    <TD ALIGN="left" id="oldcontent">
    <select name="status" style="width=150" id="newcontentformat">
    <option value="14" selected="selected">text1</option>
    <option value="15">text2</option>
    </TD>
<TR>        

Here
1)i need to click the checkbox which has dynamically generated value without any string.
2)Can i select the checkbox based on the text “Code” present in next after checkbox?
3)I need to pick up text2 in the dropdown with name status
4)Lastly the issue is this can appear any where in web page,everytime i run the test case.So i need to check the checkbox using String “code”,2ndly i need to select value from dropdown which has name staus.There are other dropdown boxes with same name status.So how do i specifically do this?

  • 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-14T11:41:17+00:00Added an answer on June 14, 2026 at 11:41 am

    To get the select list in the row that has the text “Code”, you can use the xpath:

    //tr[./td[text()='Code']]/td/select
    

    Similarly, for the checkbox, you can use the xpath:

    //tr[./td[text()='Code']]/td/input[@type='checkbox']
    

    I believe then the selenium code you want is:

    selenium.select("//tr[./td[text()='Code']]/td/select", "text2")
    selenium.check("//tr[./td[text()='Code']]/td/input[@type='checkbox']")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have placed the below code inside of the tag. <script type=text/javascript> jQuery(document).ready(function(){ jQuery('head').append('<script
I want to remove the below style tag code from the HTML and aspx
Below code !Gives me check boxes and a delete button, In input tag all
When i tried using the below code...the td tag is returned and not the
In the below code onclick edit how can the value of tag test be
I have used the code below to read rfid tag values. try { if
When I run the code below NSString *chemin; chemin = [NSString stringWithFormat:@chapitre0%d, [sender tag]];
Without use of marquee tag I want to show news like below code.I want
How can I select the first tag with center id name in sample below
I have the following html tag <input type=text id=txtColor /> <div id=wrapper> <div id=someDynamicElement></div>

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.