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
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 |
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 |
Explain the arrays in vb script?
who you define variables and functions in VB?
i want to when we will write the scripts either after getting the build or after getting the SRS?
Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?
write a vb-script code to delete all the mails in my gmail in the year 2011
How to open browser in vb script?
How can you fetch the value of a cookie?
What is the purpose of folders object of scripting.filesystemobject class in vbscript?
how to retrieve native property value in runtime?
write a vb script to display the size of the folder,date created and name of the folder
Difference between Do while loop and while wend loop
How to write functional test cases for send button in gmail.