Explorar o código

Fix windows firefox browser start up command

Daniel Gempesaw %!s(int64=10) %!d(string=hai) anos
pai
achega
22a622c40c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;
     }