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 to scroll down a page while recording in qtp. suggest me any method apart from low level recording.
How to open excel in vb script?
If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?
How to Import data from a file (file is on the desktop) to the data table
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
Explain about scrrun.dll in vbscript?
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)
about vb scripting programs this type of all question& answers
What are the naming conventions while declaring a variable in the vbscript language?
Mention what is select case statement?
how to increasing the numbers in a given text box please write a vb script
What are the valid scopes of a variable in vbscript?
What are the environments supported by vbscript language?
Explain some uses of vb script?