All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unidal.test.browser.FirefoxBrowser Maven / Gradle / Ivy

There is a newer version: 4.1.1
Show newest version
package org.unidal.test.browser;

import java.io.File;

import org.unidal.test.env.Platform;

public class FirefoxBrowser extends AbstractBrowser {
   private File getInstallPath() {
      return Platform.getProgramFile("mozilla firefox/firefox.exe");
   }

   @Override
   public String[] getCommandLine(String url) {
      return new String[] { getInstallPath().toString(), url };
   }

   public boolean isAvailable() {
      return getInstallPath().exists();
   }

   public BrowserType getId() {
      return BrowserType.FIREFOX;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy