Пример #1
0
 async def start(self):
     port = free_port()
     return await subprocess_based_service(
         [self.binary, f"/port={port}", f"/log-level={self.log_level}"],
         f"http://localhost:{port}",
         self.log_file,
     )
Пример #2
0
 async def start(self):
     port = free_port()
     return await subprocess_based_service(
         [self.binary, f"--webdriver={port}"],
         f"http://localhost:{port}/wd/hub",
         self.log_file,
     )
Пример #3
0
 async def start(self):
     port = free_port()
     await self._check_version()
     return await subprocess_based_service(
         [self.binary, "--port", str(port)],
         f"http://localhost:{port}",
         self.log_file,
     )
Пример #4
0
 async def start(self):
     port = free_port()
     return await subprocess_based_service(
         [self.binary, f"--port={port}"],
         f"http://localhost:{port}",
         self.log_file,
         start_timeout=self.start_timeout,
     )
Пример #5
0
 async def start(self):
     port = free_port()
     return await subprocess_based_service([self.binary, f'--port={port}'],
                                           f'http://localhost:{port}',
                                           self.log_file)