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

For every editbox class just define html tag as "INPPUT", in this case there are 2 edit box available on the web page so you need to include webedit class and html tag as "INPUT".
Following is what you need to write.

Code:
Dim sOpenUrl
str="Demo"
sOpenUrl = "http://newtours.demoaut.com/"
invokeURL(sOpenUrl)
Set objDescriptive = Description.Create()

'This code will input Demo in username and password fields.

Code:
objDescriptive("html tag").value="INPUT"
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

Hope this will answer your query
Reply


Messages In This Thread
RE: Getting Error: Object doesn't support - by Tarik Sheth - 04-14-2009, 11:05 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,324 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,954 12-30-2014, 11:32 AM
Last Post: ursprasadp
  Object doesn't support this property or method: 'webedit' Divya Roopa 3 9,693 03-11-2014, 07:26 AM
Last Post: basanth27
  General run error. Line (18): "Loop while Browser("Index:=0").Object.Busy" AshokReddy 3 4,799 12-20-2013, 01:44 PM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)