Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Runtime value
#4
Not Solved
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.

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?
Reply


Messages In This Thread
Runtime value - by psinhac - 12-21-2010, 06:24 PM
RE: Runtime value - by manishbhalshankar - 12-21-2010, 11:39 PM
RE: Runtime value - by supputuri - 12-22-2010, 02:40 AM
RE: Runtime value - by psinhac - 12-22-2010, 11:36 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)