File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -659,8 +659,10 @@ pub trait SeleniumManager {
659659 }
660660
661661 fn find_driver_in_path ( & self ) -> ( Option < String > , Option < String > ) {
662- let driver_version_command =
663- Command :: new ( self . get_driver_name ( ) , vec ! [ String :: from( "--version" ) ] ) ;
662+ let driver_version_command = Command :: new (
663+ self . get_driver_name ( ) ,
664+ vec ! [ String :: from( DASH_DASH_VERSION ) ] ,
665+ ) ;
664666 match run_shell_command ( driver_version_command) {
665667 Ok ( output) => {
666668 let parsed_version = parse_version ( output, self . get_logger ( ) ) . unwrap_or_default ( ) ;
Original file line number Diff line number Diff line change 1818use assert_cmd:: Command ;
1919use assert_cmd:: assert:: AssertResult ;
2020use is_executable:: is_executable;
21+ use selenium_manager:: DASH_DASH_VERSION ;
2122use selenium_manager:: files:: path_to_string;
2223use selenium_manager:: logger:: JsonOutput ;
2324use selenium_manager:: shell;
@@ -81,7 +82,8 @@ pub fn get_driver_path(cmd: &mut Command) -> String {
8182pub fn exec_driver ( cmd : & mut Command ) -> String {
8283 let cmd_mut = cmd. borrow_mut ( ) ;
8384 let driver_path = get_driver_path ( cmd_mut) ;
84- let driver_version_command = shell:: Command :: new ( & driver_path, vec ! [ String :: from( "--version" ) ] ) ;
85+ let driver_version_command =
86+ shell:: Command :: new ( & driver_path, vec ! [ String :: from( DASH_DASH_VERSION ) ] ) ;
8587 let output = run_shell_command ( driver_version_command) . unwrap ( ) ;
8688 println ! ( "**** EXEC DRIVER: {}" , output) ;
8789 output
You can’t perform that action at this time.
0 commit comments