Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
qtp object is not getting correct value
#1
Not Solved
hi,
i am new in QTp, i have small doubts, here i mentioned my play back script
Code:
Browser("Project Management - Mindlogic").Page("Project Management - Mindlogic_7").WebList("member").Select "111510BLR - Prathab(0)"
my problem is, same script is running in qtp, it's throwing error is " Cannot identify the specified item of the member object. Confirm that the specified item is included in the object's item collection."

condition is : That the Prathab(0) value is not getting because every time we submit the value in database automatically Prathab(x) value is incremented. how we use the script? please reply me.

i need step by step instruction please
Reply
#2
Not Solved
try using the index of items in the weblist
Code:
Browser("Project Management - Mindlogic").Page("Project Management - Mindlogic_7").WebList("member").Select #1

Reply
#3
Not Solved
it's throwing syntax error
Reply
#4
Not Solved
Hi Sathesh,

Try with the below way & implement accordingly.


Code:
Expected_Member_Input="111510BLR - Prathab"
  
  Items_count=Browser("Project Management - Mindlogic").Page("Project Management - Mindlogic_7").WebList("member").GetROProperty("Items count")
For i=1 to Items_count
   Act_Member=trim(Browser("Project Management - Mindlogic").Page("Project Management - Mindlogic_7").WebList("member").GetItem(i))
   if (instr(1,Act_Member,Expected_Member_Input)>0) then
       Browser("Project Management - Mindlogic").Page("Project Management - Mindlogic_7").WebList("member").Select Act_Member
       Exit for  
   End if  
Next
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  The recorded text output not appear on the correct row on the results datatable trance07 0 2,287 09-25-2013, 08:05 PM
Last Post: trance07
  Finding the correct Link mv8167 2 4,424 01-24-2012, 07:58 PM
Last Post: mv8167
  Correct syntax for read and load global datatable from Resources tab in QC to QTP hari1024 1 5,283 12-08-2011, 10:43 AM
Last Post: sshukla12
  Finding the correct WebTable mv8167 0 2,423 12-07-2011, 02:38 AM
Last Post: mv8167
  After Login, need to check if correct mv8167 6 8,000 04-15-2011, 11:07 PM
Last Post: mv8167

Forum Jump:


Users browsing this thread: 2 Guest(s)