ramkishore
9 years agoFrequent Visitor
how can I come out of loop once my condition was satisfied
Dim columnCount,rowCount 'Get ColumnCount and Row Count columnCount = GridObj.wColumnCount rowCount = GridObj.wRowCount For i = 0 to rowCount Log.Message(GridObj.wValue(i, ColumnName)) Log.Message(ColumnValue) If GridObj.wValue(i, ColumnName) = ColumnValue Then GridObj.ClickCell i,ColumnName Exit for else log.Error("expectedValues Does not exists") end if Next
I have to come out of the loop once my condition was satisfied. if suppose my condtion was satisfying at 12 column I mean 12 iteration. am getting 11 times error message here am facing some difficulty, if its not satisfied till the end of loop then only its should give error message.. please give me solution