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


Please Help Members By Posting Answers For Below Questions

How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.

2755


How to open excel in vb script?

726


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

703


How to Import data from a file (file is on the desktop) to the data table

1759


Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

1810






Explain about scrrun.dll in vbscript?

826


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..

1978


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)

3377


about vb scripting programs this type of all question& answers

1872


What are the naming conventions while declaring a variable in the vbscript language?

778


Mention what is select case statement?

700


how to increasing the numbers in a given text box please write a vb script

1923


What are the valid scopes of a variable in vbscript?

760


What are the environments supported by vbscript language?

651


Explain some uses of vb script?

725