Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
to check if an item in the list is disabled or not
#4
Not Solved
You may try with below code as reference.
Code:
allItems=split(Browser("title:=Find a Flight.*").Page("title:=Find a Flight.*").WebList("name:=fromPort").GetROProperty("all items"),";")

For i=0 to uBound(allItems)
  
  Browser("title:=Find a Flight.*").Page("title:=Find a Flight.*").WebList("name:=fromPort").Select  allItems(i)
     strVisible=Browser("title:=Find a Flight.*").Page("title:=Find a Flight.*").WebList("name:=fromPort").GetROProperty("visible")
If  strVisible=True Then
msgbox "Enabled" & "   " & allItems(i)
End If
Next

The above code is for the mercury tours sample web application provided by hp.Its a list box for selecting "from" during flight reservation.
Reply


Messages In This Thread
RE: to check if an item in the list is disabled or not - by ravi.gajul - 12-12-2011, 08:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is VBScripting disabled in Office 365 update? soumyarani 0 1,527 12-19-2020, 12:37 PM
Last Post: soumyarani
  How to select item within WebMenu learnasugo 4 8,106 10-11-2016, 03:35 PM
Last Post: learnasugo
  Compare second web list value according to the first web list value roselin6 1 2,838 10-07-2015, 09:14 PM
Last Post: supputuri
  Disabled Webelement is showing up as Visible =True in GUI Spy Shwethareddy 3 3,837 11-07-2012, 02:45 PM
Last Post: Ankesh
  How to select a particular check box from a list umer830 6 31,089 10-23-2012, 12:20 PM
Last Post: vjjohnson04

Forum Jump:


Users browsing this thread: 1 Guest(s)