Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
For loop after couple of If then else statements
#3
Not Solved
Here is the code - Thanks for looking into this!
Code:
Dim i
If Browser("x").Page("y").WebEdit("a").GetROProperty ("Disabled") = False Then
            Reporter.ReportEvent micPass, "a", "a Enabled"
Else
            Reporter.ReportEvent micFail, "a", "a Enabled"
End If
If  Browser("x").Page("y").WebEdit("b"). GetROProperty("Disabled") = False Then
    Reporter.ReportEvent micPass, "b", "b Enabled"
Else
             Reporter.ReportEvent micFail, "b", "b Enabled"
End If
If Browser("x").Page("y").WebEdit("c").GetROProperty("Disabled") = False Then
    Reporter.ReportEvent micPass, "c", "c Enabled"
Else
    Reporter.ReportEvent micFail, "c", "c Enabled"
End If
Browser("x").Page("y").WebEdit("d").GetROProperty("Enabled") = False Then
    Reporter.ReportEvent micPass, "d", "d Disabled"
Else
    Reporter.ReportEvent micFail, "d", "d Disabled"
End If
If Browser("x").Page("y").WebEdit("e").GetROProperty("Disabled") = False Then
    Reporter.ReportEvent micPass, "e", "e Enabled"
Else
    Reporter.ReportEvent micFail, "e", "e Enabled"
End If

For i = 1 To 3
Browser("x").Page("y").WebEdit("a").Set DataTable("a", dtGlobalSheet)
Browser("x").Page("y").WebEdit("a").Set DataTable("b", dtGlobalSheet)
Browser("x").Page("y").WebEdit("a").Set DataTable("c", dtGlobalSheet)
Browser("x").Page("y").WebEdit("a").Set DataTable("d", dtGlobalSheet)
Browser("x").Page("y").WebEdit("a").Set DataTable("e", dtGlobalSheet)
Browser("x").Page("y").WebElement("Search").Click
Next
Reply


Messages In This Thread
RE: For loop after couple of If then else statements - by Mala - 02-16-2011, 01:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Infinit loop Suma Parimal 1 2,771 05-29-2014, 01:22 PM
Last Post: basanth27
  Exit Do loop shipu 1 4,896 12-20-2013, 06:33 AM
Last Post: basanth27
Smile Infinite FOR loop issue Sivapratha 3 4,445 04-01-2013, 09:44 AM
Last Post: basanth27
  embedded if statements folker 1 2,695 11-04-2011, 11:16 AM
Last Post: Ankesh
  Do Until loop returning failure mitch 0 3,595 05-27-2011, 12:20 AM
Last Post: mitch

Forum Jump:


Users browsing this thread: 1 Guest(s)