Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Selenium server should allow client to specify alternative chromedriver log location #3475

Closed
lukeis opened this issue Mar 3, 2016 · 15 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 3475

This should be a few line change just passing the specified location to chromedriver
via the command-line arg 'log-path'. I suppose it would be nice if it was configurable
when running the standalone sel server too.

Reported by kkania@google.com on 2012-03-01 20:29:32

@lukeis lukeis self-assigned this Mar 3, 2016
@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I implemented this a while ago for ChromeDriverService

Reported by dawagner on 2012-04-10 23:23:14

  • Labels added: GettingInvolved

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Just registering my interest for this to be available via the python bindings in selenium.webdriver.chrome.webdriver
- if this needs to be a separate feature request please say and I will make one.

Reported by OmegaPhil on 2012-05-03 10:43:51

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by barancev on 2012-05-11 06:02:32

  • Labels added: Component-WebDriver, Component-Grid

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Requesting this for Ruby bindings as well.

Reported by jimmycuadra on 2012-06-18 18:54:42

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

It's available for the Python bindings with chromedriver_mac_23.0.1240.0, you can pass
the 'log-path' as 'service_args' keyword to the ChromeDriver.

Unfortunately it seems to be broken since selenium.chrome.service.Service.start passes
the 'service_args'  as a single string together with the port to subprocess.Popen instead
of as separate arguments. To fix this I replaced the subprocess.Popen call at line
52 with:

    self.process = subprocess.Popen([self.path, "--port=%d" % self.port] +
        list(self.service_args or []), stdout=PIPE, stderr=PIPE)

Reported by kemmerling@gmx.at on 2012-11-28 05:28:39

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Just came across the same issue as Markus, needing the same solution (i.e. not just
sufficient to add a space between the %d%s to split the port argument from the first
service argument, each argument needs to be a separate list element).

Reported by neal@torchbox.com on 2012-11-30 12:03:52

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

For python: see revision 18237

Reported by dawagner on 2012-12-02 11:32:45

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Added named args for python as revision 18238

Reported by dawagner on 2012-12-02 11:39:29

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Is there some way I can specify the location where chromedriver.log is written using
Selenium Webdriver in Java? I really appreciate your help. Thanks.

Reported by anu.john.t on 2013-03-12 07:39:57

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I use this in Java


ChromeDriverService service = new ChromeDriverService.Builder()                     .usingDriverExecutable(chromeDriverFile).usingAnyFreePort().withLogFile(location).build();

hope this helps

Reported by binod80 on 2013-03-12 14:08:46

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Hi!

As i can see this option is supported at:
* server by using system property webdriver.chrome.logfile
* at python binding using service_args or service_log_path arguments:

driver = webdriver.Chrome(executable_path="D:\\chromedriver.v1.exe", service_args=["--log-path=D:\\qc1.log"])
driver = webdriver.Chrome(executable_path="D:\\chromedriver.v1.exe", service_log_path="D:\\qc2.log")

* at C# binding - see in documentation.

* at java binding - as it was mentioned at @10
* at remote - by passing chrome-args or similar as capability

Only ruby is not covered yet as i understand.

Reported by a.u.savchuk on 2013-05-03 07:25:35

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by barancev on 2013-05-09 20:00:25

  • Labels added: Lang-Ruby

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

This issue was closed by revision 14e19725f10e.

Reported by jari.bakken on 2013-05-21 14:26:02

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by jari.bakken on 2015-02-26 23:01:20

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by luke.semerau on 2015-09-17 18:14:55

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 3, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.