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

org.unidal.test.browser.OperaBrowser 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 OperaBrowser extends AbstractBrowser {
   private File getInstallPath() {
      return Platform.getProgramFile("opera/opera.exe");
   }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy