MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / __init__

Method __init__

py/selenium/webdriver/remote/server.py:54–78  ·  view source on GitHub ↗
(
        self,
        host=None,
        port=4444,
        path=None,
        version=None,
        log_level="INFO",
        env=None,
        java_path=None,
        startup_timeout=10,
        args=None,
    )

Source from the content-addressed store, hash-verified

52 DEFAULT_ARGS = ("--selenium-manager", "true", "--enable-managed-downloads", "true")
53
54 def __init__(
55 self,
56 host=None,
57 port=4444,
58 path=None,
59 version=None,
60 log_level="INFO",
61 env=None,
62 java_path=None,
63 startup_timeout=10,
64 args=None,
65 ):
66 if path and version:
67 raise TypeError("Not allowed to specify a version when using an existing server path")
68
69 self.host = host
70 self.port = port
71 self.path = path
72 self.version = version
73 self.log_level = log_level
74 self.env = env
75 self.java_path = java_path
76 self.startup_timeout = startup_timeout
77 self.args = list(args) if args is not None else list(self.DEFAULT_ARGS)
78 self.process = None
79
80 @property
81 def startup_timeout(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected