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 |
what is used of Property........End Property loop ? how to write the script for it?
Explain the scope of the variables using dim, public, and private keywords respectively.
Mention what is the main difference between function and sub-procedure?
What methods are used to create text files and open text files in the vbscript language?
How to get the background color of a weblist?
how to find greatest of n numbers!
Explain few date functions in vbscript?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
write a vb script code to display the vbscript word by word (i e 1st it should display v then b and up to t )
In QTP how to insert a data base check point for web based application and simultaneous link to code in expert veiw. hw to retrieve a data(single coulumn from server) that matches with inserted value manually or exported from excel sheet.
what is the object hyrarchy in QTP for a web based application
Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar