Ask a Question

launching firefox through groovy

alibaba82
Super Contributor

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 1
omatzura
Super Contributor

Re: launching firefox through groovy

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
cancel
Showing results for 
Search instead for 
Did you mean: