SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Mar 2011
    Posts
    193
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    click on a link in a webtable if exist

    I am finding in which row does the number exists and trying to click on it.

    NoOfRows = Browser("Log In - ExamOneŽ Inside").Page("Your Test Results - ExamOneŽ").WebTable("Bar Code Number").RowCount
    for i=0 to NoOfRows
    NoOfColumns = Browser("Log In - ExamOneŽ Inside").Page("Your Test Results - ExamOneŽ").WebTable("Bar Code Number").ColumnCount(i)
    for j=0 to NoOfColumns
    row = Browser("Log In - ExamOneŽ Inside").Page("Your Test Results - ExamOneŽ").WebTable("Bar Code Number").GetRowWithCellText(Parameter("Barcode_Num ber"), i, j)
    Next
    Next
    If row !=0 Then ' It errors here not able to figure out what is wrong
    End If
    Browser("Log In - ExamOneŽ Inside").Page("Your Test Results - ExamOneŽ").WebTable("Bar Code Number").Click row,1
    End If

  2. #2
    Super Member
    Join Date
    Dec 2005
    Location
    USA
    Posts
    1,407
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: click on a link in a webtable if exist

    NoOfRows = Browser("Log In - ExamOneŽ Inside").Page("Your Test Results - ExamOneŽ").WebTable("Bar Code Number").RowCount
    NoOfColumns = Browser("Log In - ExamOneŽ Inside").Page("Your Test Results - ExamOneŽ").WebTable("Bar Code Number").ColumnCount(i)

    for i=0 to NoOfRows
    for j=0 to NoOfColumns
    row = Browser("Log In - ExamOneŽ Inside").Page("Your Test Results - ExamOneŽ").WebTable("Bar Code Number").GetRowWithCellText(Parameter("Barcode_Num ber"), i, j)
    If row !=0 Then ' It errors here not able to figure out what is wrong
    Browser("Log In - ExamOneŽ Inside").Page("Your Test Results - ExamOneŽ").WebTable("Bar Code Number").Click row,1
    End If

    Next
    Next
    ------------
    Chikki
    when things gets harder ,the harder gets going

  3. #3
    Member
    Join Date
    Mar 2011
    Posts
    193
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: click on a link in a webtable if exist

    If row !=0 Then This line is throwing the error saying expected statement .............what am I missing??

  4. #4
    Advanced Member
    Join Date
    Aug 2006
    Location
    Other side of the Computer
    Posts
    598
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: click on a link in a webtable if exist

    !=0 is used for java or c++ use <>
    ===========================================

  5. #5
    Member
    Join Date
    Mar 2011
    Posts
    193
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: click on a link in a webtable if exist

    Perfect got it , Thankyou so much.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 08:19 AM.

Copyright BetaSoft Inc.