Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
adding two conditions into a while statement
#4
Solved: 10 Years, 9 Months, 1 Week ago
Then try this, I am taking the rCount and cCount as 2 and 15 as table is of fixed size else take the counts.
Code:
StrToCompare="Less Client account (FIU)"
For i=1 To 2
  j=1
  Flag=0
  Do While (Flag=0 AND j<16)    
    Str=Browser("BrowserProp").Page("PgProp").WebTable("TblProp").GetCellData(i,j)
    If (StrComp(StrToCompare,Str)=0) Then
      Flag=1
      Exit Do
    End If
      j=j+1
  Loop
  If (Flag=1) Then
    Reporter.ReportEvent micPass, "PASS", "The item","Item Found in the column" & i
  else
    Reporter.ReportEvent micPass, "PASS", "The item","Item Not Found in the column"&i
  End If
Next
Reply
Jump to the post that solved this thread.


Messages In This Thread
RE: adding two conditions into a while statement - by KavitaPriyaCR - 10-08-2010, 10:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Uft: Adding a property to all ojects into Repository ProTester 0 1,256 06-09-2017, 12:48 AM
Last Post: ProTester
  adding an object to OR seven 1 2,569 02-17-2014, 02:23 PM
Last Post: basanth27
  How to access webtables without adding into Object Repository ramkumarad 7 9,296 12-30-2013, 07:38 PM
Last Post: Sathiya
  vb script to stop execution of functions if conditions fail visitjaga 1 7,146 12-05-2013, 12:26 AM
Last Post: ravi.gajul
  Adding Visual Relation id via script to new object jcraig26 1 3,974 06-24-2013, 01:26 PM
Last Post: ourhari

Forum Jump:


Users browsing this thread: 1 Guest(s)