Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Runtime opening Mozilla Browser
#1
Not Solved
Would like to open Mozilla Browser at runtime and navigate to URL Like am doing for IE browser below:-
Code:
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
Window("hwnd:=" & IE.HWND).Maximize
IE.Stop
wait (5)
IE.NAVIGATE "www.abc.com"

Appreciate any help on this. THanks.
Reply
#2
Not Solved
Code:
SystemUtil.CloseProcessByName("Firefox.exe")
        SystemUtil.CloseProcessByName("iexplore.exe")

        If envBrowserType = "FF" Then    
                SystemUtil.Run "Firefox.exe", sURL
        Else
                SystemUtil.Run "iexplore.exe", sURL
        End if
Reply
#3
Not Solved
I could not understand why u have opened IE by creating object of it. It can simply be opened by "SystemUtil.Run" method...

However you can try the following to open Firefox at run time..

SystemUtil.Run "C:\Program Files\Mozilla Firefox\firefox.exe", "www.google.com"

And make sure nothing is opening in Record And Run settings when u press Run/Record button.
Reply


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,474 03-11-2014, 12:13 PM
Last Post: devarapallliramana
  WebElement is not getting identified in chrome browser but identified in mozilla ,IE pradeep singh 7 8,384 05-15-2013, 11:30 AM
Last Post: pradeep singh
  How to find the Browser type at runtime? Rahull 1 3,198 09-14-2012, 09:22 PM
Last Post: SteveS
  Error while opening text file through QTP SarodeGirish 5 4,566 06-25-2012, 01:03 PM
Last Post: sandya
Question Browser Ready State Property for Mozilla Charanpreet 0 4,627 05-04-2011, 12:00 PM
Last Post: Charanpreet

Forum Jump:


Users browsing this thread: 1 Guest(s)