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
How should i Create Email invite with server-side Coding?
How do you declare a variable in vbscript?
Which data type/types are supported by vbscript language and what are their specialties?
How to write VB script for login module?
How to Convert Hex color code to color name in VB Script?
how to operate webobjects in a webpage using getobject function and then using generic methods?
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.
How will you get a subset of a array in vbscript?
What is difference between vbscript and vba?
What is dictionary object in vbscript? Explain?
How to throw an error in vbscript?
what is resorceallocation
how to automatically update the sql server2005 database records when insert in vb6?
What is the use of the recordset object and which statement is used to create such an object?
Mention how to assign a date value to a variable?