Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
17 years ago

launching firefox through groovy

would you know of any way to launch firefox with some specified URL. I need this to verify accounts when they are created.

I am able to do this for IE using the scriptcom library provided on the groovy website which allows controlling of COM object.

Thanks

Ali

1 Reply

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Ali,

    you should be able to launch firefox with something like the following:

    def builder = new ProcessBuilder( "cmd", "/c", "firefox", "http://www.eviware.com")
    builder.directory( new File("c:\\Program Files\\Mozilla Firefox") )
    builder.start()

    Hope this helps!

    regards,

    /Ole
    eviware.com