Results 1 to 6 of 6
  1. #1

    How To make browser full screen


    I have a brower("mybrowser"), which contains many pages in my object repository.

    How can i make my browser full screen. Any body know which method does this?


  2. #2

    Re: How To make browser full screen

    Browser("mybrowser").FullScreen sometimes works if you are using Internet Explorer. This success/failure of this method appears to be related to the security policies on your computer.

  3. #3
    Senior Member
    Join Date
    Jun 2007
    Toronto, Canada

    Re: How To make browser full screen

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

  4. #4

    Re: How To make browser full screen

    You can use this below method to maximize your browser

    While doing this if any security pop's come you can call the below function

    Function CloseExitingDialogs()
    set Odesc = Description.Create()
    ODesc("micclass").value = "Dialog"
    ODesc("nativeClass").Value = "#32770"
    Set Ochld = Desktop.Childobjects(ODesc)
    For Itr = 0 to Ochld.Count-1
    If (Ochld(Itr).GetRoProperty("visible") = True Then
    End If
    Set Ocld = Nothing
    Set ODesc = Nothing
    End Function

    this will work fine

  5. #5

    Re: How To make browser full screen


    Can you please explain what's nativeClass property and is it always having value '#32770'? How did you get that through recording.

    Thanks a lot

  6. #6

    Re: How To make browser full screen

    Use QTP spy to spy on the security pop up window and you will see a value for "nativeClass".



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 03:57 PM.

Copyright BetaSoft Inc.