org.unidal.test.browser.FirefoxBrowser Maven / Gradle / Ivy
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;
}
}