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



I wrote the vbscript code on notepad i was geeting run time error "object required line 1&quo..

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

Post New Answer

More VB Script Interview Questions

wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

0 Answers  


How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.

0 Answers  


write a vb script to rename a folder from tree4 to tree7

3 Answers  


hi, How will write a regular expression of date in VB scripting.

1 Answers  


accept an email id & validate it .email id should not exceed 25 characters the mail id should contain 3 characters excluding domain name,@ and .(dot) the last 3 characters of the domain should be net,com or org

2 Answers  






By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

0 Answers  


write a text script to display * as below ********** **** **** *** *** ** ** * * * * ** ** *** *** **** **** **********

1 Answers  


write a vbscript for traffic signal

1 Answers  


Anyone have qtp11.0 crack?

0 Answers  


Could Anybody tell me the Script for REVERSE an Interger int reverse(int num) Ex:246 to 642.. Thanks in Advance.

3 Answers   Amazon,


How to Convert Hex color code to color name in VB Script?

0 Answers  


Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards

0 Answers  


Categories