Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open Browser
#1
Not Solved
Hi,
i have created a function to open a browser, but i don't understand one thing. Here the code:

Code:
Function FunOpenBrowser()
    
    dim objexpl, brow, pag, hwnd(1)
    set objexpl = CreateObject("InternetExplorer.Application")
    objexpl.visible = true
    objexpl.navigate "http://www.vodafone.it"
    wait(5)
    
    Set brow  = Browser("hwnd:=" & objexpl.hwnd)
    Set pag   = brow.Page("title:=" & objexpl.Document.Title)
    pag.Sync
    
    hwnd(0)  = brow.getroproperty("hwnd")
    hwnd(1)  =  pag.getroproperty("hwnd")
    
    FunOpenBrowser = hwnd
    
End Function

I use a program to modify host files, because I have different test environments, but when i launch this function the opend browser has always the same host...
[if i write a similar function using SystemUtil.Run "iexplore" i have not this problem].
Can somebody explain me this behaviour?
thanx a lot
Reply


Messages In This Thread
Open Browser - by stevol - 09-17-2008, 06:01 PM
RE: Open Browser - by Ankur - 09-29-2008, 03:32 PM
RE: Open Browser - by stevol - 09-29-2008, 04:53 PM
RE: Open Browser - by Ankur - 09-29-2008, 04:58 PM
RE: Open Browser - by stevol - 09-29-2008, 05:28 PM
RE: Open Browser - by Ankur - 09-29-2008, 06:56 PM
RE: Open Browser - by stevol - 09-29-2008, 07:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Cannot find the "[ WebEdit ]" object's parent "[ Browser ]" (class Browser). Verify t Divya Roopa 1 8,476 03-11-2014, 12:13 PM
Last Post: devarapallliramana
  Sendkeys to close an open web browser prasadworld321 2 8,468 03-05-2010, 12:23 PM
Last Post: prasadworld321
  Want to open a new browser window with new session umer830 1 8,082 01-18-2010, 04:45 PM
Last Post: satan
  Unable to open a file using open file dialog windows vista umer830 10 14,100 12-21-2009, 01:48 PM
Last Post: Saket
  Retreive Title for an Already Open Browser coasterdad1971 1 2,439 06-11-2008, 09:08 PM
Last Post: ramu

Forum Jump:


Users browsing this thread: 1 Guest(s)