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


Please Help Members By Posting Answers For Below Questions

What is purpose of scripting.filesystemobject class in vbscript?

709


What is the difference between vbscript and vba?

668


What is the purpose of on error resume next statement?

638


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

2119


Mention what is vbscript procedures?

597






Which operator can be used to do an xor operation in vbscript?

755


Which object provide information about a single runtime error in a vbscript?

666


How will you convert a given number to long in vbscript?

548


What is the use of the date function in the vbscript language?

637


wht must be the interview question on corinthian information technology solutions incorporated.

2249


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

547


i need to sort the data using qtp script for this how i need to write a qtp script

3287


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.

1853


How to replace junk code recorded by QTP with a mall function.

1723


What are the data types supported by vbscript?

645