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 |
write a vbscript for finding the sum of the numbers from 1- 50
How you can call vbscript functions?
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
Mention what is vbscript?
how to retrive the tooltip by using descriptive programming in qtp?
i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me
Hi all..I have two values. a=20 ,b=30 I want to perform c= a+b and c= a*b using user define function.please anyone give the answer
What are class variables?
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
Explain the constants in vbscript?
Difference between Function and Sub routine?
How can you create an object in vbscript?