I wrote the vbscript code on notepad i was geeting run time
error "object required line 1" my code is
set usernameobj=Descriptive.Create()
usernameobj( "name").value="Username"
set passwordobj=Descriptive.Create()
passwordobj("name").value="password"
set signinobj=Descriptive.Create()
signin("name").value="sigin"
browser("gmail").page("gmail").WebEdit("usernameobj").set
("enter username")
Browser("gmail").Page("gmail").WebEdit("passwordobj").Setsec
ure.Crypt.Encrypt("entr password")
browser("gmail").page("gmail").WebButton("siginobj").click
pls tell me whats wrong
Answer Posted / niranjani
Hi,
You have created signinobj but while describing you have given signin, it should be signinobj
set signinobj=Descriptive.Create()
signin("name").value="sigin"
fine below the updated code
set signinobj=Descriptive.Create()
signinobj("name").value="sigin"
i hope it should work
all the best
Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is purpose of scripting.filesystemobject class in vbscript?
What is the difference between vbscript and vba?
What is the purpose of on error resume next statement?
HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.
Mention what is vbscript procedures?
Which operator can be used to do an xor operation in vbscript?
Which object provide information about a single runtime error in a vbscript?
How will you convert a given number to long in vbscript?
What is the use of the date function in the vbscript language?
wht must be the interview question on corinthian information technology solutions incorporated.
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
i need to sort the data using qtp script for this how i need to write a qtp script
I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.
How to replace junk code recorded by QTP with a mall function.
What are the data types supported by vbscript?