
com.github.webdriverextensions.Utils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webdriverextensions-maven-plugin Show documentation
Show all versions of webdriverextensions-maven-plugin Show documentation
Use this plugin to manage, download and install WebDriver drivers directly from your pom.
The newest version!
package com.github.webdriverextensions;
import java.io.File;
import java.net.URL;
import org.openqa.selenium.Platform;
public class Utils {
public static String quote(String text) {
return "\"" + text + "\"";
}
public static String quote(File file) {
return quote(file.getAbsolutePath());
}
public static String quote(URL url) {
return quote(url.toString());
}
public static boolean isWindows() {
return Platform.WINDOWS.is(Platform.getCurrent());
}
public static boolean isMac() {
return Platform.MAC.is(Platform.getCurrent());
}
public static boolean isLinux() {
return System.getProperty("os.name").toLowerCase().equals("linux");
}
public static boolean is64Bit() {
return com.sun.jna.Platform.is64Bit();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy