12-22-2010, 11:36 AM
Hi supputuri,
I used descriptive program....below is the code but its not working fine as I feel i am not using Regular expression in this code in a correct way.
This code is working for a particular row but when I add "and" in If condition and regular expression(.*) in value property webcheckbox its giving error.
can you tell me where I am doing the mistake in the above code?
I used descriptive program....below is the code but its not working fine as I feel i am not using Regular expression in this code in a correct way.
Code:
zip1=Browser("xxx").Page("xxx").WebElement("innerhtml:=28273").GetROProperty("innerhtml")
zip2=Browser("xxx").Page("xxx").WebElement("innerhtml:=91406").GetROProperty("innerhtml")
zip3=Browser("xxx").Page("xxx").WebElement("innerhtml:=30093").GetROProperty("innerhtml")
zip4=Browser("xxx").Page("xxx").WebElement("innerhtml:=19380
For i=0 to rowcount-1
zip_no=Browser("xxx").Page("xxx").WebTable("xxx").GetCellData(i,10)
If zip_no=zip1 Then
Browser("xxx").Page("xxx").WebCheckBox("name:=locationid","value:=81630904~1").Click
End If
Next
This code is working for a particular row but when I add "and" in If condition and regular expression(.*) in value property webcheckbox its giving error.
can you tell me where I am doing the mistake in the above code?