How to write Descriptive programming in .VBS file
i wrote this code but it is giving error..
Dim qtApp
set qtApp=createobject("QuickTest.Application")
qtApp.Launch
qtApp.Visible=True

Set objIE = CreateObject("InternetExplorer.Application")
objIE.visible = True
objIE.Navigate "www.gmail.com"

browser("title:=gmail").title("title:=gmail")

Answers were Sorted based on User's Feedback



How to write Descriptive programming in .VBS file i wrote this code but it is giving error.. Dim ..

Answer / shashank shekhar raj

Hai Quick-test Professional,

For your kind information i want to say you that VB Script
does not support Descriptive programming

But Descriptive programming full-support the VB Script

i mean that if you write this code in QTP which support both
Descriptive programming and VB Script you are sucessfull

but if you write this code in .vbs File which is pure VB
Script then you got the ERROR.
You just observe that .VBS File only shown error on that
line of code in which you write DP Proggraming

browser("title:=gmail").title("title:=gmail")

you got ERROR only in this line because you was not use VB
Script here you was only use DP in this line

Is This Answer Correct ?    4 Yes 0 No

How to write Descriptive programming in .VBS file i wrote this code but it is giving error.. Dim ..

Answer / santosh.qtp

i am able to open a browser...
but i am not able to user browser object and wait object in
.vbs...

Please tell me how to use the qtp objects in .vbs file ...

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More VB Script Interview Questions

What are class variables?

0 Answers  


A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.

0 Answers  


How can you fetch the value of a cookie?

0 Answers  


What is the difference between vb debugger and the script debugger?

0 Answers  


what is used of Property........End Property loop ? how to write the script for it?

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,


In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?

0 Answers   Nous,


write a Vb script to find a whther a selected drive exits.

1 Answers   CTS,


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

2 Answers  


How to create MSAcess table foriegn key

1 Answers  


How can I write HTML text to the window in VB Script?

2 Answers  


write a vb script to generate hello 5 times using do until loop

4 Answers  


Categories