Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to check if a value is selected in weblist
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
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:
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
Reply


Messages In This Thread
RE: how to check if a value is selected in weblist - by KavitaPriyaCR - 11-17-2010, 11:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  WEBLIST shayk1985 3 5,601 05-17-2018, 11:49 AM
Last Post: Ankur
  DataGrid: double click on selected row robertosalemi 0 4,428 05-12-2016, 03:00 PM
Last Post: robertosalemi
  Weblist selection diya 11 21,353 06-16-2015, 08:27 PM
Last Post: rajpradeep32
  Comparing webtable data with weblist and webelements in other webpage arnav 1 5,811 04-18-2014, 10:01 PM
Last Post: Parke
  Unable to select value on weblist ShekharUlli 3 5,673 09-26-2013, 08:58 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)