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
Which operator can be used to change the value of the operand or change the state of the condition?
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
what is used of Property........End Property loop ? how to write the script for it?
What is the technology used by vb script?
What is purpose of scripting.filesystemobject class in vbscript?
How can constants be declared in the vbscript language?
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
How to access array data?
How can you create an object in vbscript?
What is the difference between VBScript and JavaScript?
Which event is triggered when mouse focus comes out of an element in the vbscript language?
Which in-built function related to an array joins substrings into one string in the vbscript language?
Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks
Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?