File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -483,7 +483,7 @@ pub trait SeleniumManager {
483
483
} else {
484
484
self . set_browser_version ( discovered_version) ;
485
485
}
486
- if self . is_webview2 ( ) {
486
+ if self . is_webview2 ( ) && PathBuf :: from ( self . get_browser_path ( ) ) . is_dir ( ) {
487
487
let browser_path = format ! (
488
488
r#"{}\{}\msedge{}"# ,
489
489
self . get_browser_path( ) ,
@@ -1029,7 +1029,7 @@ pub trait SeleniumManager {
1029
1029
let mut commands = Vec :: new ( ) ;
1030
1030
1031
1031
if WINDOWS . is ( self . get_os ( ) ) {
1032
- if !escaped_browser_path. is_empty ( ) && ! self . is_webview2 ( ) {
1032
+ if !escaped_browser_path. is_empty ( ) {
1033
1033
let wmic_command =
1034
1034
Command :: new_single ( format_one_arg ( WMIC_COMMAND , & escaped_browser_path) ) ;
1035
1035
commands. push ( wmic_command) ;
You can’t perform that action at this time.
0 commit comments