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
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
(10-08-2010, 10:27 AM)KavitaPriyaCR Wrote: 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

Thank you KavitaPriyaCR, I'll try it and will let you know.
Reply
Jump to the post that solved this thread.


Messages In This Thread
RE: adding two conditions into a while statement - by lotos - 11-10-2017, 04:49 AM

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

Forum Jump:


Users browsing this thread: 3 Guest(s)