ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Scripts >> VB Script
 
 


 

 
 PHP interview questions  PHP Interview Questions (660)
 ASP interview questions  ASP Interview Questions (252)
 CGI Perl interview questions  CGI Perl Interview Questions (76)
 JavaScript interview questions  JavaScript Interview Questions (176)
 VB Script interview questions  VB Script Interview Questions (343)
 JSP interview questions  JSP Interview Questions (100)
 Shell Script interview questions  Shell Script Interview Questions (158)
 Python interview questions  Python Interview Questions (5)
 Tcl interview questions  Tcl Interview Questions (19)
 Awk interview questions  Awk Interview Questions (6)
 AJAX interview questions  AJAX Interview Questions (24)
 Ruby on Rails interview questions  Ruby on Rails Interview Questions (21)
 Scripts AllOther interview questions  Scripts AllOther Interview Questions (48)
Question
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")
 Question Submitted By :: VB-Script
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
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
Shashank Shekhar Raj
 
Answer
# 2
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
Santosh.qtp
 
 
 

 
 
 
Other VB Script Interview Questions
 
  Question Asked @ Answers
 
How to create MSAcess table foriegn key   1
write a vb script to open a text file and write into it   2
Hi I don't have any idea on VBscript. can any one point me to a good web site to learn VBscript. Regards lina   2
give me an ex. of unoverloaded method? Misys 2
How to remove the spaces in a string Ex: "this is apple" Cap-Gemini 5
How to use Text file (Notepad) as ur data source in QTP? Can u please provide some function code for it?   1
In QTP how to insert a data base check point for web based application and simultaneous link to code in expert veiw. hw to retrieve a data(single coulumn from server) that matches with inserted value manually or exported from excel sheet.   2
How to write functional test cases for send button in gmail. Arctern 1
write a vb script to display the reverse of vbs   2
I'm new to QTP, i facing a a problem in the script says"Object not found", "Browser("").page("").frame(Name:=fminfo).webtable(). the issue is, QTp is not able to identify the web table in run time.becuase in that fram"fminfo" there are "n"table and the table do not have the names,Html id. 1) i need to count the number webtables available on that page. 2)need to identify the webtable cell values. 3)How Loop the once i get the count and retrive the cell data of each webtable? Can anyone help on this, plz.. Thanks, Suresh   3
wat is com(common object model)object for mozilla firefox??? if any knows the exact answer....plz rply me   2
1)How to test whether items in a weblist are in alphabetical order or not? TCS 1
 
For more VB Script Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com