11-17-2010, 11:21 AM
(This post was last modified: 11-17-2010, 11:22 AM by KavitaPriyaCR.)
Hi Jenny
You mean if the address type "home address" already exists in the maintenance screen then don't add, else add address for home address.
If this is the case then, check the index value for each previous address types and take the index for looping:
You mean if the address type "home address" already exists in the maintenance screen then don't add, else add address for home address.
If this is the case then, check the index value for each previous address types and take the index for looping:
Code:
i=0
flag=0
do While (Browser().Page().WebList("index:="&i).Exist(1))
'ObjExcelSheet.Cells(x,y).value -> is for address type
If (StrComp(Browser().Page().WebList("index:="&i).getROProperty("value"),"home address"=0) Then
' Dont add the address
flag=1
Exit do
End If
If flag=0 Then
' add the address for address type "home address"
Browser().Page().WebList("index:="&i).Select "home address"
End If