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")

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How should i Create Email invite with server-side Coding?

1604


How do you declare a variable in vbscript?

631


Which data type/types are supported by vbscript language and what are their specialties?

596


How to write VB script for login module?

2678


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

3934






how to operate webobjects in a webpage using getobject function and then using generic methods?

2542


Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.

1415


How will you get a subset of a array in vbscript?

589


What is difference between vbscript and vba?

612


What is dictionary object in vbscript? Explain?

628


How to throw an error in vbscript?

605


what is resorceallocation

1775


how to automatically update the sql server2005 database records when insert in vb6?

1487


What is the use of the recordset object and which statement is used to create such an object?

529


Mention how to assign a date value to a variable?

590