Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generate Run time error on Allchkboxes(i).GetROProperty("all items")
#1
Not Solved
Hi,

I got run time error on line msgbox AllCHkBoxes(i).getROProperty("all items".
Would you please help ? This is the scrip to count number weblist on the app and output all items on every weblist.



Code:
Browser("....").Page("........").WebElement("......").Click
' create description object"
Set obj_ChkDesc = Description.Create( )
obj_ChkDesc("micclass").value = "WebList"
Set AllChkBoxes = Browser("....").Page("....").ChildObjects(obj_ChkDesc)
msgbox AllChkBoxes.count
For i=0  to AllChkBoxes.count -1
msgbox  AllChkBoxes(i).getROProperty("all items")
Next


Thanks,
Reply
#2
Not Solved
Your code looks just fine but i suspect your page to have more than one weblist, if this is the case, add one more property like
Code:
obj_ChkDesc("name").value = "name_of_WebList"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send/pass UFT Run Error Dialog as output value to main driver script lravi4u 0 321 11-05-2023, 03:55 PM
Last Post: lravi4u
  How to identify an error page occurring in server in between the qtp run. aswini 1 1,636 05-04-2017, 03:52 PM
Last Post: Ankur
  [UFT] [WPF] DataGrid: get items of ControlTemplate robertosalemi 0 3,282 07-14-2016, 07:52 PM
Last Post: robertosalemi
  SwfList: unchecked all items robertosalemi 0 1,839 12-21-2015, 03:46 PM
Last Post: robertosalemi
  QTP not recogonising object during run time Lavanya N 2 3,526 10-28-2015, 12:46 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)