瀏覽代碼

Fix windows firefox browser start up command

Daniel Gempesaw 10 年之前
父節點
當前提交
22a622c40c
共有 1 個文件被更改,包括 2 次插入2 次删除
  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;
     }