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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.

2784


What is the technology used by vb script?

748


Mention what is the use of option explicit in vbscript?

781


How to make sure that items in a wintree are sorted al?

2581


Explain what is loose binding? Why is it not a good practice to use it?

824


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

1662


Explain the adodb.stream class?

760


Differentiate javascript and vbscript?

780


How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2729


How are values assigned to string type and numeric type variables?

766


How to declare an array in vbscript?

911


Which loop is used in case of arrays in the vbscript language?

730


what is the object hyrarchy in QTP for a web based application

2112


Explain about constants in vb script?

793


How do i automate a website www.flyashx.com without having any test cases witin a week time.

1673