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 / 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 |
How to declare an array in vbscript?
What is the difference between ByRef and ByVal. When to use ByRef and ByVal
How to replace junk code recorded by QTP with a mall function.
What is the purpose of on error resume next statement?
Both Static and dynamic arrays are handled by VB script. Is it true?
Explain the asc function?
hey please tell me how to retriev data from excel sheet which puts the login name and password in the application? plz send me the code..please help me
1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?
How to capture a runtime error in vbscript?
Write a program to display the numbers in the below format using for loops? 1 2 3 4 5 6 7 8 9 10 11 12 and Write a program to display the numbers in the below format using for loops. 1 2 3 4 5 6 7 8 9 10
What is the difference between for loop and while loop?
What are the valid scopes of a variable in vbscript?