Geeks Talk

Prepare for your Next Interview




Open browser with maximized

This is a discussion on Open browser with maximized within the Web Testing forums, part of the Software Testing category; Hi, When i open my browser using script its always not open with maximized. always i have to click the maximize control in the web page is there any possible ...


Go Back   Geeks Talk > Software Testing > Web Testing

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 11-23-2007
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
Open browser with maximized

Hi,

When i open my browser using script its always not open with maximized.
always i have to click the maximize control in the web page

is there any possible script for this functionality?

Plz help me


Regards,

Punitha.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-23-2007
Expert Member
 
Join Date: Oct 2007
Location: Mumbai
Posts: 347
Thanks: 4
Thanked 54 Times in 44 Posts
bizzzzzare is on a distinguished road
Re: Open browser with maximized

Hi Punitha,

Incase you are using the sysutil.run option, try this -

Const SHOW_MAXIMIZED = 3 SystemUtil.Run "iexplore.exe", "http://www.knowledgeinbox.com", , , SHOW_MAXIMIZED

Incase you are using CreateObject methodology, I dont think there is an associate Window_Maximize method available. But there is a FullScreen method which is like -

Set objIE = CreateObject("InternetExplorer.Application")
objIE.visible = true
objIE.Fullscreen = true

Cheers...

Bizzzzzare
Reply With Quote
  #3 (permalink)  
Old 11-23-2007
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
Re: Open browser with maximized

Hi,

I gave the url name when i start record the application,
then i change the script.
first line of my script is starting like this
Browser("B").Page("P").Image("M").Click login_btn

In this where i have to add this lines.

Then i have to test the same website in 3 different languages,
the coding concepts are same. But the languages are different.
Can i merge these codes or is there any option for using this.

actually i cant understand this create object and all.
is it formate for opening the browsers?
Whats the advantage of this

Plz explain me.

Thx & Regards,

Punitha.
Reply With Quote
  #4 (permalink)  
Old 11-23-2007
Expert Member
 
Join Date: Oct 2007
Location: Mumbai
Posts: 347
Thanks: 4
Thanked 54 Times in 44 Posts
bizzzzzare is on a distinguished road
Re: Open browser with maximized

Hi Punitha,

Well CreateObject is used to actually create an instance of opening a browser and as per specified URL. It is a very efficient method of opening a browser without having to add the browser object to the Repository.

What I would suggest is you implement the CreateObject code I have mentioned and specify the Application URL as a parameter.

Once this is done, recognize the Newly Launched browser window object into your repository. Proceed ahead with your remaining code as usual.

Do let me know incase of any issues....

Cheers...

Bizzzzzare
Reply With Quote
  #5 (permalink)  
Old 11-29-2007
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
Hi Umesh,

For maximize the web page
Const SHOW_MAXIMIZED = 3 SystemUtil.Run "iexplore.exe", "http://www.sitename.com", , , SHOW_MAXIMIZED
this script is working fine

But create object is not working

Set objIE = CreateObject("InternetExplorer.Application")
objIE.visible = true
objIE.Fullscreen = true

In this script InternetExplorer is not in object repository error display
In this code where i have to insert my web url
plz give the example url like google open with this create object method.

Thx

Punitha. R

Hi Umesh,

If i use this code for open the browser its giving error

Set objIE = CreateObject("InternetExplorer.Application")
objIE.visible = true
objIE.Fullscreen = true

Plz give the explanation with the site google
and explain how i use this.

Thx and regards,

Punitha.R

Last edited by admin : 11-30-2007 at 06:32 AM.
Reply With Quote
  #6 (permalink)  
Old 02-18-2008
Banned
 
Join Date: Oct 2007
Location: Hyderabad
Posts: 176
Thanks: 2
Thanked 11 Times in 11 Posts
quality_quantity is on a distinguished road
Re: Open browser with maximized

Web development takes into account a lot of things, such as data entry error checking through forms, as well as sanitization of the data that is entered in those fields. Malicious practices such as SQL injection can be executed through users with ill intent yet only primitive knowledge of web development as a whole. Not only this, but scripts can be exploited to grant unauthorized access to the hacker to gain information such as email addresses, passwords and protected content.

Some of this is dependent on the server environment (most commonly Apache or Microsoft IIS) on which the scripting language, such as PHP, Ruby, Python, Perl or ASP is running, and therefore is not necessarily down to the web developer themselves to maintain. However, stringent testing of web applications before public release is encouraged to prevent such exploits from occurring.
Reply With Quote
  #7 (permalink)  
Old 02-18-2008
Contributing Member
 
Join Date: Oct 2007
Location: Chennai
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Punitha.R is on a distinguished road
Re: Open browser with maximized

Hi,

Thanks for ur reply.

I cant understand ur answers.

I am new to Qtp, so plz kindly explain in very simple way.

If its wrong sorry

Thx,
Punitha R.
Reply With Quote
  #8 (permalink)  
Old 06-02-2008
Junior Member
 
Join Date: Jun 2008
Location: pune
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
anilbody is on a distinguished road
Re: Open browser with maximized

hi Punitha.R

In QTP use CreateObject and then use windowState=Maximized statement

For example
Set q =createObject("InternetExplorer.Application")
q.Visible=True
q.WindowState=Maximized
Reply With Quote
Reply

  Geeks Talk > Software Testing > Web Testing


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Browser Independent Coding 3roses HTML & CSS 5 06-06-2008 08:25 AM
I have 2 browsers open having the same title and I want to close the second browser? rkiran416 QTP 5 10-09-2007 05:25 AM
% of non-AJAX browser on IE psuresh1982 AJAX & XML 0 07-31-2007 04:31 AM
Browser buttons through CSS iravhari HTML & CSS 0 05-13-2007 02:34 AM
hide my browser vmshenoy Geeks Lounge 1 01-18-2007 01:43 AM


All times are GMT -4. The time now is 06:30 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved