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


Please Help Members By Posting Answers For Below Questions

In what way program "hello world" you can write in vbscript?

655


What is purpose of scripting.filesystemobject class in vbscript?

629


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

1541


Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

526


1. How do declare public variable in vb scripts?

1579






How will you get the smallest subscript of an array in vbscript?

814


What are class variables?

620


How strcomp function works?

626


How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz

2393


We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?

1756


Explain about the support of asp for vb script functionality?

532


Explain about scrrun.dll in vbscript?

654


What is the use of the date function in the vbscript language?

569


can anyone tell me the procedure of interview held in applabs

1755


Can automation testing find ssame no. of bugs what we can find by manual testing?

1474