Class CommandLine

java.lang.Object
org.openqa.selenium.os.CommandLine

@Deprecated public class CommandLine extends Object
Deprecated.
  • Constructor Details

    • CommandLine

      public CommandLine(String executable, String... args)
      Deprecated.
  • Method Details

    • setEnvironmentVariables

      public void setEnvironmentVariables(Map<String,String> environment)
      Deprecated.
      Adds the specified environment variables.
      Parameters:
      environment - the variables to add
      Throws:
      IllegalArgumentException - if any value given is null (unsupported)
    • setEnvironmentVariable

      public void setEnvironmentVariable(String name, String value)
      Deprecated.
      Adds the specified environment variable.
      Parameters:
      name - the name of the environment variable
      value - the value of the environment variable
      Throws:
      IllegalArgumentException - if the value given is null (unsupported)
    • setDynamicLibraryPath

      public void setDynamicLibraryPath(String newLibraryPath)
      Deprecated.
    • updateDynamicLibraryPath

      public void updateDynamicLibraryPath(String extraPath)
      Deprecated.
    • getLibraryPathPropertyName

      public static String getLibraryPathPropertyName()
      Deprecated.
      Returns:
      The platform specific env property name which contains the library path.
    • executeAsync

      public void executeAsync()
      Deprecated.
    • execute

      public void execute()
      Deprecated.
    • waitForProcessStarted

      public boolean waitForProcessStarted(long duration, TimeUnit unit)
      Deprecated.
    • waitFor

      public void waitFor()
      Deprecated.
    • waitFor

      public void waitFor(long timeout)
      Deprecated.
    • isSuccessful

      public boolean isSuccessful()
      Deprecated.
    • getExitCode

      public int getExitCode()
      Deprecated.
    • getStdOut

      public String getStdOut()
      Deprecated.
    • destroy

      public int destroy()
      Deprecated.
      Destroy the current command.
      Returns:
      The exit code of the command.
    • isRunning

      public boolean isRunning()
      Deprecated.
      Check whether the current command is still executing.
      Returns:
      true if the current command is still executing, false otherwise
    • setInput

      public void setInput(String allInput)
      Deprecated.
    • setWorkingDirectory

      public void setWorkingDirectory(String workingDirectory)
      Deprecated.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • copyOutputTo

      public void copyOutputTo(OutputStream out)
      Deprecated.
    • checkForError

      public void checkForError()
      Deprecated.