Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Error: Object doesn't support
#2
Solved: 10 Years, 10 Months, 3 Weeks ago
Here is the corrected code:

Code:
Dim sOpenUrl

sOpenUrl = "http://newtours.demoaut.com/"
invokeURL(sOpenUrl)
Set objDescriptive = Description.Create()
objDescriptive("name").value = "userName"

' You missed to define webedit class for the object, now it works and username field is set with "Demo"
objDescriptive("micclass").value="WebEdit"
Set userNameObject = Browser("title:=Welcome:.*").Page("title:=Welcome: .*").ChildObjects(objDescriptive)

'Verify whether the object exist or not, put else condition if it does not.
Code:
If userNameObject.Count <>0 Then
    For i =0 to userNameObject.count -1
   userNameObject(i).Set str
Next
End If

I hope this clears your query.
Code:
Function invokeURL(sUrl )
Dim objIE
Dim objOpenIE
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = True
objIE.Navigate sURL
End Function[hr]


Add str="Demo"
Reply


Messages In This Thread
RE: Getting Error: Object doesn't support - by Tarik Sheth - 04-13-2009, 12:00 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)