Skip to content

Commit 5e73475

Browse files
committed
add pydoc to new RemoteConnection timeout methods
1 parent 0888205 commit 5e73475

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

py/selenium/webdriver/remote/remote_connection.py

+13
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,27 @@ class RemoteConnection(object):
138138

139139
@classmethod
140140
def get_timeout(cls):
141+
"""
142+
:Returns:
143+
Timeout value in seconds for all http requests made to the Remote Connection
144+
"""
141145
return None if cls._timeout == socket._GLOBAL_DEFAULT_TIMEOUT or cls._timeout
142146

143147
@classmethod
144148
def set_timeout(cls, timeout):
149+
"""
150+
Override the default timeout
151+
152+
:Args:
153+
- timeout - timeout value for http requests in seconds
154+
"""
145155
cls._timeout = timeout
146156

147157
@classmethod
148158
def reset_timeout(cls):
159+
"""
160+
Reset the http request timeout to socket._GLOBAL_DEFAULT_TIMEOUT
161+
"""
149162
cls._timeout = socket._GLOBAL_DEFAULT_TIMEOUT
150163

151164
def __init__(self, remote_server_addr, keep_alive=False):

0 commit comments

Comments
 (0)