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 differance between BYVAL,BYREF?
Explain about arrays in vb script?
What are lbound and ubound in the vbscript language?
Explain the support of asp for vb script functionality?
Illustrate briefly about the different types of statement
1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
give me any information abou vb script books learn quckly
Explain vbscript in detail?
How to replace junk code recorded by QTP with a mall function.
Explain about scrrun.dll in vbscript?
How to make sure that items in a wintree are sorted al?
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)
If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using