Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Error: Object doesn't support
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
Hi,
Well first of all i would like to thank to learnQTPSmile I am new to QTP and learning from this site only. Got enough materials and especially good tips from the forum.

I have written the following code:


Code:
Dim sOpenUrl
sOpenUrl = "http://newtours.demoaut.com/"
invokeURL(sOpenUrl)
Set objDescriptive = Description.Create()
objDescriptive("name").value = "user.*"
Set userNameObject = Browser("title:=Welcome:.*").Page("title:=Welcome: .*").ChildObjects(objDescriptive)
For i =0 to userNameObject.count -1

        userNameObject(i).Set "Demo"

Next


Function  invokeURL(sUrl )
   Dim objIE
   Dim objOpenIE
   Set objIE = CreateObject("InternetExplorer.Application")
   objIE.Visible = True
   objIE.Navigate sURL    
End Function

When i executed .. i am getting following error:
Object doesn't support this property or method: 'userNameObject(...).Set'
Line (10): "userNameObject(i).Set "Demo"".

Can any one guide me? Also please suggest whether i have implemented DP concept correctly or not ?

Cheers,
Prasad
Reply


Messages In This Thread
Getting Error: Object doesn't support - by mydestiny - 04-13-2009, 08:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  File Chooser on Chrome doesn't work - UFT 15.0.1 Nenna Rosa 1 3,325 10-31-2020, 01:16 PM
Last Post: Ankur
  Intermitent "Object not visible" error erodpr 5 3,288 01-14-2016, 10:55 AM
Last Post: vinod123
  ERROR : Object reference not set to an instance of an object. Suyashxp 2 6,955 12-30-2014, 11:32 AM
Last Post: ursprasadp
  Object doesn't support this property or method: 'webedit' Divya Roopa 3 9,695 03-11-2014, 07:26 AM
Last Post: basanth27
  General run error. Line (18): "Loop while Browser("Index:=0").Object.Busy" AshokReddy 3 4,802 12-20-2013, 01:44 PM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)