SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Guest

    Help: Need to select a row in a table

    Hi,
    I have a HtmlTable and I want to select a row given by its number. Currently Iam able to select only First row even if I give the row number as 2 also.

    This is my line of code ,
    ChildWindowName.tablename.ColumnName.HtmlText(sRow Val).Click()

    Note: sRowVal is the row number (2).

    ------------------

  2. #2
    Guest

    Re: Help: Need to select a row in a table

    You should be using the following statement if you are sure that the HtmlText index is sequencial (matches with row number) all the time in this column.

    int iRowVal=2
    ChildWindowName.tablename.ColumnName.HtmlText("#{i RowVal}").Click()

  3. #3
    Junior Member
    Join Date
    Dec 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help: Need to select a row in a table

    Thanks for the reply rkamani.
    I still have the same problem even if I use the HtmlText("#{rowVal}").Click()

    ------------------

  4. #4
    Guest

    Re: Help: Need to select a row in a table

    You need to check whether each link in this column is inside the same htmltable OR not. Try recording actions & click on link in row 2 & 3 and see what is recorded. Based on this if you can find the uniqueness of link tag in the column, you will be able to click on it.

    Please post the actions you recorded.

  5. #5
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help: Need to select a row in a table

    Try getting a rectangle on that HtmlText in that row. Then to a click on that coordinate. I find this method to be much more reliable.

    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 07:22 PM.

Copyright BetaSoft Inc.