File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
py/selenium/webdriver/phantomjs Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 13
13
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
+ import platform
17
+ import signal
16
18
import subprocess
17
19
import time
18
- import signal
19
20
20
21
from selenium .common .exceptions import WebDriverException
21
22
from selenium .webdriver .common import utils
@@ -59,8 +60,8 @@ def start(self):
59
60
"""
60
61
try :
61
62
self .process = subprocess .Popen (self .service_args , stdin = subprocess .PIPE ,
62
- close_fds = True , stdout = self . _log ,
63
- stderr = self ._log )
63
+ close_fds = platform . system () != 'Windows' ,
64
+ stdout = self . _log , stderr = self ._log )
64
65
65
66
except Exception as e :
66
67
raise WebDriverException ("Unable to start phantomjs with ghostdriver." , e )
You can’t perform that action at this time.
0 commit comments