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
What is the extension of the vbscript file?
Which command is used for writing text on a page?
Which object provide information about a single runtime error in a vbscript?
write any ttest cases using check points and parameterization
Which operator can be used to change the value of the operand or change the state of the condition?
How will you get a subset of a array in vbscript?
Mention what is the use of option explicit in vbscript?
What is sql loader? Explain the files used by sql loader to load file?
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
what is event handling?
Explain about tristate constants?
Why to use option explicit in vb script?
Mention the environments where vbscript could be run?
What is the difference between javascript and vbscript?
Mention what is variant in vbscript?