Results 1 to 8 of 8

Thread: Open browser with maximized

  1. #1
    Contributing Member
    Join Date
    Oct 2007
    Answers
    30

    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.


  2. #2
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    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


  3. #3
    Contributing Member
    Join Date
    Oct 2007
    Answers
    30

    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.


  4. #4
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    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


  5. #5
    Contributing Member
    Join Date
    Oct 2007
    Answers
    30
    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 07:32 AM.

  6. #6
    Banned
    Join Date
    Oct 2007
    Answers
    173

    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.


  7. #7
    Contributing Member
    Join Date
    Oct 2007
    Answers
    30

    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.


  8. #8
    Junior Member
    Join Date
    Jun 2008
    Answers
    1

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact