GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 599 of 684    Print  
how to write a function for Maximising a Browser in QTP ?
Hi QTP Experts,

how to write a function for Maximising a Browser in QTP I'm already having function for that but it's taking very slow to access the browser im pasting my function below

hwnd = Browser("...").GetROProperty("hwnd")
Window("hwnd:=" & hwnd).Maximize

And also I'm having different function but its for making the browser as full screen not maximising the Browser as if like if we press F12 for the Opened Browser but its not working for Maximising the Browser which I'm pasting it down


Maximize the Browser
''Name : fnBrowserMaximize()
''Description: This function is used to Maximize the Browser
''Arguments:
''Example:
''Return True/False
'Pre-Condition: Chordiant Application
'Post-Condition:Chordiant Application
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Public Function fnBrowserMaximize()
fnBrowserMaximize=false

wait(2)
If Browser("Creationtime:=0").exist(1) then
If Browser("Creationtime:=0").Object.Top <> "-1" then

Browser("Creationtime:=0").Page("Creationtime:=0").sync
Browser("Creationtime:=0").FullScreen
fnBrowserMaximize=true
End If
End If
End Function


Pls help me with this ?

Thanks in Advance,

Prabhu.R




  
Total Answers and Comments: 1 Last Update: December 18, 2007     Asked by: PrabhuSparks 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 18, 2007 15:54:17   #1  
Anshoo_Arora Member Since: October 2007   Contribution: 384    

RE: how to write a function for Maximising a Browser in QTP ?
It worked fine when I did it without Creatime Time.
 
Is this answer useful? Yes | No

 Related Questions

What are the properties you would use for identifying a browser & page when using descriptive programming ?

How can we write scripts without having GUI(means u dont have any GUI and u want to write a script in QTP)?
no answer 
Read Answers (13) | Asked by : deepti

Latest Answer : QTP provides the Active Screen Technology i.e it will take snapshots of the Application when you are going thru' the appl. by using the snapshots you will be able to write the script for that particular appl. ...
Read Answers (5) | Asked by : deep

How you write scripts in qtp?what's the main process in qtp?How do you run scripts in Qtp?Please anyone can answer my questions.......
please answer those questions 
Read Answers (2) | Asked by : sanjana

Latest Answer : Function which we have to recall, we have to save it in in notepad as .vbs file and use EXECUTE FILE " C:[filename]  " ...
Read Answers (10) | Asked by : kumar

These are the new features which are available in QTP8.2 and which are not present in 6.5 version.Keyword View: Lets you easily build and maintain tests without writingVBScripts.Auto-Documentation: Provides 
Latest Answer : Really great help,Thanks ...
Read Answers (2) | Asked by : James

Latest Answer : Main process in QTP is Recording, stores the properties in object repository  then Running the script and then Test Results.Recording: QTP 'looks' at the object on which we are recording and stores it as a test object, determining in which test object ...
Read Answers (1) | Asked by : manish

How do u ignore exceptions raised by a procedure or function within a package.Ex: Package a { Proc1; Func1; ---- raised an exception Proc2; Proc3; }Note : Even if Func1 raises an exception proc2 and proc3 must be excecuted.
Read Answers (1) | Asked by : Uday Sharma

How can i write a script to automate the page which contains random questions with corresponding answers as radio buttons eg:questions1............a b c dquestion 2a b c d..............
Read Answers (1) | Asked by : srikanth

Give an example of a regular expression,user-defined function and built-in-function?how to make a user-defined function reusable?
Read Answers (2) | Asked by : Mann


 Sponsored Links

 
Related Articles

SQA Software and Tools

SQA Software and Tools In quality assurance it is always important to get all the help we could get In other industries developers could easily check the products manually and discard those that do not meet the standard The length and the width of the product are checked to maintain standardization
 

Business Network Virtual Communication Tools

Business Network Virtual Communication Tools Since ages the Business community heavily relied on face to face communication for building Business relationships Face to face communications formed the basis for trust in a relationship An individual&rsquo; s appearance or the physical appearance of
 

C++ Pure Virtual Function and Base Class

C Pure Virtual Function and Virtual Base Class In this C tutorial you will learn about pure virtual function declaration of pure virtual function and virtual base class virtual base class and how to implement a virtual base class explained with examples mosgoogle center What is Pure Virtual Function
 

C++ Function Passing Types

C Function Passing Types In this C tutorial you will learn about function passing types two types of arguments passing in functions passed by value&nbsp; and&nbsp; passed by reference are discussed here mosgoogle center The arguments passed to a function can be performed in two ways Passed
 

What are Data Access Tools

Data access is the process of entering a database to store or retrieve data. Data Access Tools are end user oriented tools that allow users to build structured query language (SQL) queries by pointing and clicking on the list of table and fields in the data warehouse. Thorough computing history, t
 

What is DECODE function used for?

DECODE is used to decode a CHAR or VARCHAR2 or NUMBER into any of several different character strings or numbers based on value. That is DECODE does a value-by-value substitution. For every value that is given in the DECODE function it makes an if then check and matches the value. The general format
 

printf() Function Return Value

What is the return value from printf() function? printf function always returns the number of characters printed. Let us understand this with an example: main() { int a=10; printf(&quot;%d&quot;,printf(&quot;%d %d %d&quot;, a,a,a)); } In this above program the inner printf i
 

How is the main() function declared?

The declaration of main can be done as int main() One more declaration that can be taken by main is command line arguments form int main(int argc, char *argv[]) or this can also be written as int main(argc, argv) int argc; char *argv[]; NOTE: It is not possible for one to declare the main
 

How does the function call within function get evaluated?

Whenever we have more than one function which is called for a finite number of times then such a function gets evaluated from inside out. Let us understand this concept with an example. For instance consider a function sample called within it 4 times as given in program below: main() { int a=50;
 

What happens when a variable is not initialized in main function?

When a variable is not initialized in main function it contains garbage value. This can be well seen from the example below main() { int x; printf(&ldquo;%d&rdquo;,x); z= sample() } sample() { printf(&ldquo;Testing program&rdquo;); } Output is &nbsp;&nbsp;&n
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape