Prepare for your Next Interview
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 ...
|
|||
|
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. |
| Sponsored Links |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |