Przeglądaj źródła

Fix windows firefox browser start up command

Daniel Gempesaw 10 lat temu
rodzic
commit
22a622c40c
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      lib/Selenium/CanStartBinary.pm

+ 2 - 2
lib/Selenium/CanStartBinary.pm

@@ -281,13 +281,13 @@ sub _cmd_prefix {
     my ($self) = @_;
 
     if (IS_WIN) {
-        my $prefix = 'start "' . $self->window_title;
+        my $prefix = 'start "' . $self->window_title . '"';
 
         # Let's minimize the command windows for the drivers that have
         # separate binaries - but let's not minimize the Firefox
         # window itself.
         if (! $self->isa('Selenium::Firefox')) {
-            $prefix .= '" /MIN ';
+            $prefix .= ' /MIN ';
         }
         return $prefix;
     }