08-21-2012, 06:56 PM
I have already tried this option.
may be i need to optimize my code
the same code repeats for 170 times for diffrent categories
may be i need to optimize my code
Code:
call function()
Browser("df").Page("df").WebElement("abc Services").Click
Browser("fd").Page("Jdf").Link("2dfs").Click
If Browser("df").Page("asd").WebElement("df").Exist and Browser("df").Page("dfs").WebElement("df").Exist Then
Reporter.ReportEvent micPass,"pass","pass"
else
Reporter.ReportEvent micFail,"fail","fail"
End If
Browser("df").Page("2df").Link("Link").Click
the same code repeats for 170 times for diffrent categories