public function start( $args, $assoc_args ) {
		$selenium = $this->_get_executable();
		if ( is_executable( $selenium ) ) {

			$pids = explode( PHP_EOL, trim( shell_exec( "pgrep -f {$selenium}" ) ) );
			if ( count( $pids ) < 2 ) {
				shell_exec( "{$selenium} > /dev/null 2>/dev/null &" );
				\WP_CLI::success( 'Selenium server started.' );
			} else {
				\WP_CLI::warning( 'Selenium server is already started.' );
			}

		} else {
			\WP_CLI::error( 'Selenium server is not executable or not installed.' );
		}
	}
public function start( $args, $assoc_args ) {
		$selenium = $this->_get_executable();
		if ( is_executable( $selenium ) ) {

			$pids = explode( PHP_EOL, trim( shell_exec( "pgrep -f {$selenium}" ) ) );
			if ( count( $pids ) < 2 ) {
				shell_exec( "{$selenium} > /dev/null 2>/dev/null &" );
				\WP_CLI::success( 'Selenium server started.' );
			} else {
				\WP_CLI::warning( 'Selenium server is already started.' );
			}

		} else {
			\WP_CLI::error( 'Selenium server is not executable or not installed.' );
		}
	}
public function start ( $ args , $ assoc_args ) { $ selenium = $ this -> _get_executable ( ) ; if ( is_executable ( $ selenium ) ) { $ pids = explode ( PHP_EOL , trim ( shell_exec ( "pgrep -f {$selenium}" ) ) ) ; if ( count ( $ pids ) < 2 ) { shell_exec ( "{$selenium} > /dev/null 2>/dev/null &" ) ; \ WP_CLI :: success ( 'Selenium server started.' ) ; } else { \ WP_CLI :: warning ( 'Selenium server is already started.' ) ; } } else { \ WP_CLI :: error ( 'Selenium server is not executable or not installed.' ) ; } }
Starts selenium server.

### OPTIONS

### EXAMPLE

wp selenium start

@since 1.0.0
@alias run

@access public
@param array $args Unassociated array of arguments passed to this command.
@param array $assoc_args Associated array of arguments passed to this command.
Starts selenium server .