Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion service.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ func (s Service) FrameBuffer() *FrameBuffer {

//PID returns the service pid
func (s Service) PID() int {
return s.cmd.Process.Pid
if s.cmd != nil {
return s.cmd.Process.Pid
}

return 0
Comment thread
vinijabes marked this conversation as resolved.
Outdated
}

// NewSeleniumService starts a Selenium instance in the background.
Expand Down