зеркало из https://github.com/openwpm/OpenWPM.git
Pass service_args to geckodriver
Fix a bug in PatchedGeckoDriverService that caused geckodriver not to receive the service_args passed when starting the browser. PatchedGeckoDriverService is a modified version of Selenium's Service class and this bug has been fixed in the original version.
This commit is contained in:
Родитель
51c0849cbd
Коммит
7f51e50f44
|
@ -129,7 +129,7 @@ class PatchedGeckoDriverService(BaseService):
|
|||
self.service_args = service_args or []
|
||||
|
||||
def command_line_args(self):
|
||||
return ["--port", "%d" % self.port]
|
||||
return ["--port", "%d" % self.port] + self.service_args
|
||||
|
||||
def send_remote_shutdown_command(self):
|
||||
pass
|
||||
|
|
Загрузка…
Ссылка в новой задаче