repository_name stringlengths 7 55 | func_path_in_repository stringlengths 4 223 | func_name stringlengths 1 134 | whole_func_string stringlengths 75 104k | language stringclasses 1
value | func_code_string stringlengths 75 104k | func_code_tokens listlengths 19 28.4k | func_documentation_string stringlengths 1 46.9k | func_documentation_tokens listlengths 1 1.97k | split_name stringclasses 1
value | func_code_url stringlengths 87 315 |
|---|---|---|---|---|---|---|---|---|---|---|
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.DOMDebugger_setXHRBreakpoint | def DOMDebugger_setXHRBreakpoint(self, url):
"""
Function path: DOMDebugger.setXHRBreakpoint
Domain: DOMDebugger
Method name: setXHRBreakpoint
Parameters:
Required arguments:
'url' (type: string) -> Resource URL substring. All XHRs having this substring in the URL will get stopped upon.
No r... | python | def DOMDebugger_setXHRBreakpoint(self, url):
"""
Function path: DOMDebugger.setXHRBreakpoint
Domain: DOMDebugger
Method name: setXHRBreakpoint
Parameters:
Required arguments:
'url' (type: string) -> Resource URL substring. All XHRs having this substring in the URL will get stopped upon.
No r... | [
"def",
"DOMDebugger_setXHRBreakpoint",
"(",
"self",
",",
"url",
")",
":",
"assert",
"isinstance",
"(",
"url",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'url' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"url",
")",
"subdom_funcs",
"=... | Function path: DOMDebugger.setXHRBreakpoint
Domain: DOMDebugger
Method name: setXHRBreakpoint
Parameters:
Required arguments:
'url' (type: string) -> Resource URL substring. All XHRs having this substring in the URL will get stopped upon.
No return value.
Description: Sets breakpoint on XM... | [
"Function",
"path",
":",
"DOMDebugger",
".",
"setXHRBreakpoint",
"Domain",
":",
"DOMDebugger",
"Method",
"name",
":",
"setXHRBreakpoint",
"Parameters",
":",
"Required",
"arguments",
":",
"url",
"(",
"type",
":",
"string",
")",
"-",
">",
"Resource",
"URL",
"sub... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L4640-L4658 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.DOMDebugger_removeXHRBreakpoint | def DOMDebugger_removeXHRBreakpoint(self, url):
"""
Function path: DOMDebugger.removeXHRBreakpoint
Domain: DOMDebugger
Method name: removeXHRBreakpoint
Parameters:
Required arguments:
'url' (type: string) -> Resource URL substring.
No return value.
Description: Removes breakpoint from ... | python | def DOMDebugger_removeXHRBreakpoint(self, url):
"""
Function path: DOMDebugger.removeXHRBreakpoint
Domain: DOMDebugger
Method name: removeXHRBreakpoint
Parameters:
Required arguments:
'url' (type: string) -> Resource URL substring.
No return value.
Description: Removes breakpoint from ... | [
"def",
"DOMDebugger_removeXHRBreakpoint",
"(",
"self",
",",
"url",
")",
":",
"assert",
"isinstance",
"(",
"url",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'url' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"url",
")",
"subdom_funcs",
... | Function path: DOMDebugger.removeXHRBreakpoint
Domain: DOMDebugger
Method name: removeXHRBreakpoint
Parameters:
Required arguments:
'url' (type: string) -> Resource URL substring.
No return value.
Description: Removes breakpoint from XMLHttpRequest. | [
"Function",
"path",
":",
"DOMDebugger",
".",
"removeXHRBreakpoint",
"Domain",
":",
"DOMDebugger",
"Method",
"name",
":",
"removeXHRBreakpoint",
"Parameters",
":",
"Required",
"arguments",
":",
"url",
"(",
"type",
":",
"string",
")",
"-",
">",
"Resource",
"URL",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L4660-L4678 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Target_setDiscoverTargets | def Target_setDiscoverTargets(self, discover):
"""
Function path: Target.setDiscoverTargets
Domain: Target
Method name: setDiscoverTargets
Parameters:
Required arguments:
'discover' (type: boolean) -> Whether to discover available targets.
No return value.
Description: Controls whether... | python | def Target_setDiscoverTargets(self, discover):
"""
Function path: Target.setDiscoverTargets
Domain: Target
Method name: setDiscoverTargets
Parameters:
Required arguments:
'discover' (type: boolean) -> Whether to discover available targets.
No return value.
Description: Controls whether... | [
"def",
"Target_setDiscoverTargets",
"(",
"self",
",",
"discover",
")",
":",
"assert",
"isinstance",
"(",
"discover",
",",
"(",
"bool",
",",
")",
")",
",",
"\"Argument 'discover' must be of type '['bool']'. Received type: '%s'\"",
"%",
"type",
"(",
"discover",
")",
"... | Function path: Target.setDiscoverTargets
Domain: Target
Method name: setDiscoverTargets
Parameters:
Required arguments:
'discover' (type: boolean) -> Whether to discover available targets.
No return value.
Description: Controls whether to discover available targets and notify via <code>tar... | [
"Function",
"path",
":",
"Target",
".",
"setDiscoverTargets",
"Domain",
":",
"Target",
"Method",
"name",
":",
"setDiscoverTargets",
"Parameters",
":",
"Required",
"arguments",
":",
"discover",
"(",
"type",
":",
"boolean",
")",
"-",
">",
"Whether",
"to",
"disco... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L4715-L4733 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Target_setAutoAttach | def Target_setAutoAttach(self, autoAttach, waitForDebuggerOnStart):
"""
Function path: Target.setAutoAttach
Domain: Target
Method name: setAutoAttach
Parameters:
Required arguments:
'autoAttach' (type: boolean) -> Whether to auto-attach to related targets.
'waitForDebuggerOnStart' (type: b... | python | def Target_setAutoAttach(self, autoAttach, waitForDebuggerOnStart):
"""
Function path: Target.setAutoAttach
Domain: Target
Method name: setAutoAttach
Parameters:
Required arguments:
'autoAttach' (type: boolean) -> Whether to auto-attach to related targets.
'waitForDebuggerOnStart' (type: b... | [
"def",
"Target_setAutoAttach",
"(",
"self",
",",
"autoAttach",
",",
"waitForDebuggerOnStart",
")",
":",
"assert",
"isinstance",
"(",
"autoAttach",
",",
"(",
"bool",
",",
")",
")",
",",
"\"Argument 'autoAttach' must be of type '['bool']'. Received type: '%s'\"",
"%",
"ty... | Function path: Target.setAutoAttach
Domain: Target
Method name: setAutoAttach
Parameters:
Required arguments:
'autoAttach' (type: boolean) -> Whether to auto-attach to related targets.
'waitForDebuggerOnStart' (type: boolean) -> Whether to pause new targets when attaching to them. Use <code>Ru... | [
"Function",
"path",
":",
"Target",
".",
"setAutoAttach",
"Domain",
":",
"Target",
"Method",
"name",
":",
"setAutoAttach",
"Parameters",
":",
"Required",
"arguments",
":",
"autoAttach",
"(",
"type",
":",
"boolean",
")",
"-",
">",
"Whether",
"to",
"auto",
"-",... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L4735-L4757 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Target_setAttachToFrames | def Target_setAttachToFrames(self, value):
"""
Function path: Target.setAttachToFrames
Domain: Target
Method name: setAttachToFrames
Parameters:
Required arguments:
'value' (type: boolean) -> Whether to attach to frames.
No return value.
"""
assert isinstance(value, (bool,)
), "... | python | def Target_setAttachToFrames(self, value):
"""
Function path: Target.setAttachToFrames
Domain: Target
Method name: setAttachToFrames
Parameters:
Required arguments:
'value' (type: boolean) -> Whether to attach to frames.
No return value.
"""
assert isinstance(value, (bool,)
), "... | [
"def",
"Target_setAttachToFrames",
"(",
"self",
",",
"value",
")",
":",
"assert",
"isinstance",
"(",
"value",
",",
"(",
"bool",
",",
")",
")",
",",
"\"Argument 'value' must be of type '['bool']'. Received type: '%s'\"",
"%",
"type",
"(",
"value",
")",
"subdom_funcs"... | Function path: Target.setAttachToFrames
Domain: Target
Method name: setAttachToFrames
Parameters:
Required arguments:
'value' (type: boolean) -> Whether to attach to frames.
No return value. | [
"Function",
"path",
":",
"Target",
".",
"setAttachToFrames",
"Domain",
":",
"Target",
"Method",
"name",
":",
"setAttachToFrames",
"Parameters",
":",
"Required",
"arguments",
":",
"value",
"(",
"type",
":",
"boolean",
")",
"-",
">",
"Whether",
"to",
"attach",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L4759-L4776 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Target_setRemoteLocations | def Target_setRemoteLocations(self, locations):
"""
Function path: Target.setRemoteLocations
Domain: Target
Method name: setRemoteLocations
Parameters:
Required arguments:
'locations' (type: array) -> List of remote locations.
No return value.
Description: Enables target discovery for ... | python | def Target_setRemoteLocations(self, locations):
"""
Function path: Target.setRemoteLocations
Domain: Target
Method name: setRemoteLocations
Parameters:
Required arguments:
'locations' (type: array) -> List of remote locations.
No return value.
Description: Enables target discovery for ... | [
"def",
"Target_setRemoteLocations",
"(",
"self",
",",
"locations",
")",
":",
"assert",
"isinstance",
"(",
"locations",
",",
"(",
"list",
",",
"tuple",
")",
")",
",",
"\"Argument 'locations' must be of type '['list', 'tuple']'. Received type: '%s'\"",
"%",
"type",
"(",
... | Function path: Target.setRemoteLocations
Domain: Target
Method name: setRemoteLocations
Parameters:
Required arguments:
'locations' (type: array) -> List of remote locations.
No return value.
Description: Enables target discovery for the specified locations, when <code>setDiscoverTargets</... | [
"Function",
"path",
":",
"Target",
".",
"setRemoteLocations",
"Domain",
":",
"Target",
"Method",
"name",
":",
"setRemoteLocations",
"Parameters",
":",
"Required",
"arguments",
":",
"locations",
"(",
"type",
":",
"array",
")",
"-",
">",
"List",
"of",
"remote",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L4778-L4796 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Target_sendMessageToTarget | def Target_sendMessageToTarget(self, message, **kwargs):
"""
Function path: Target.sendMessageToTarget
Domain: Target
Method name: sendMessageToTarget
Parameters:
Required arguments:
'message' (type: string) -> No description
Optional arguments:
'sessionId' (type: SessionID) -> Identif... | python | def Target_sendMessageToTarget(self, message, **kwargs):
"""
Function path: Target.sendMessageToTarget
Domain: Target
Method name: sendMessageToTarget
Parameters:
Required arguments:
'message' (type: string) -> No description
Optional arguments:
'sessionId' (type: SessionID) -> Identif... | [
"def",
"Target_sendMessageToTarget",
"(",
"self",
",",
"message",
",",
"*",
"*",
"kwargs",
")",
":",
"assert",
"isinstance",
"(",
"message",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'message' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
... | Function path: Target.sendMessageToTarget
Domain: Target
Method name: sendMessageToTarget
Parameters:
Required arguments:
'message' (type: string) -> No description
Optional arguments:
'sessionId' (type: SessionID) -> Identifier of the session.
'targetId' (type: TargetID) -> Deprecate... | [
"Function",
"path",
":",
"Target",
".",
"sendMessageToTarget",
"Domain",
":",
"Target",
"Method",
"name",
":",
"sendMessageToTarget",
"Parameters",
":",
"Required",
"arguments",
":",
"message",
"(",
"type",
":",
"string",
")",
"-",
">",
"No",
"description",
"O... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L4798-L4823 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.ServiceWorker_unregister | def ServiceWorker_unregister(self, scopeURL):
"""
Function path: ServiceWorker.unregister
Domain: ServiceWorker
Method name: unregister
Parameters:
Required arguments:
'scopeURL' (type: string) -> No description
No return value.
"""
assert isinstance(scopeURL, (str,)
), "Argumen... | python | def ServiceWorker_unregister(self, scopeURL):
"""
Function path: ServiceWorker.unregister
Domain: ServiceWorker
Method name: unregister
Parameters:
Required arguments:
'scopeURL' (type: string) -> No description
No return value.
"""
assert isinstance(scopeURL, (str,)
), "Argumen... | [
"def",
"ServiceWorker_unregister",
"(",
"self",
",",
"scopeURL",
")",
":",
"assert",
"isinstance",
"(",
"scopeURL",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'scopeURL' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"scopeURL",
")",
"sub... | Function path: ServiceWorker.unregister
Domain: ServiceWorker
Method name: unregister
Parameters:
Required arguments:
'scopeURL' (type: string) -> No description
No return value. | [
"Function",
"path",
":",
"ServiceWorker",
".",
"unregister",
"Domain",
":",
"ServiceWorker",
"Method",
"name",
":",
"unregister",
"Parameters",
":",
"Required",
"arguments",
":",
"scopeURL",
"(",
"type",
":",
"string",
")",
"-",
">",
"No",
"description",
"No",... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5024-L5041 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.ServiceWorker_updateRegistration | def ServiceWorker_updateRegistration(self, scopeURL):
"""
Function path: ServiceWorker.updateRegistration
Domain: ServiceWorker
Method name: updateRegistration
Parameters:
Required arguments:
'scopeURL' (type: string) -> No description
No return value.
"""
assert isinstance(scopeURL, ... | python | def ServiceWorker_updateRegistration(self, scopeURL):
"""
Function path: ServiceWorker.updateRegistration
Domain: ServiceWorker
Method name: updateRegistration
Parameters:
Required arguments:
'scopeURL' (type: string) -> No description
No return value.
"""
assert isinstance(scopeURL, ... | [
"def",
"ServiceWorker_updateRegistration",
"(",
"self",
",",
"scopeURL",
")",
":",
"assert",
"isinstance",
"(",
"scopeURL",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'scopeURL' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"scopeURL",
")"... | Function path: ServiceWorker.updateRegistration
Domain: ServiceWorker
Method name: updateRegistration
Parameters:
Required arguments:
'scopeURL' (type: string) -> No description
No return value. | [
"Function",
"path",
":",
"ServiceWorker",
".",
"updateRegistration",
"Domain",
":",
"ServiceWorker",
"Method",
"name",
":",
"updateRegistration",
"Parameters",
":",
"Required",
"arguments",
":",
"scopeURL",
"(",
"type",
":",
"string",
")",
"-",
">",
"No",
"descr... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5043-L5060 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.ServiceWorker_startWorker | def ServiceWorker_startWorker(self, scopeURL):
"""
Function path: ServiceWorker.startWorker
Domain: ServiceWorker
Method name: startWorker
Parameters:
Required arguments:
'scopeURL' (type: string) -> No description
No return value.
"""
assert isinstance(scopeURL, (str,)
), "Argu... | python | def ServiceWorker_startWorker(self, scopeURL):
"""
Function path: ServiceWorker.startWorker
Domain: ServiceWorker
Method name: startWorker
Parameters:
Required arguments:
'scopeURL' (type: string) -> No description
No return value.
"""
assert isinstance(scopeURL, (str,)
), "Argu... | [
"def",
"ServiceWorker_startWorker",
"(",
"self",
",",
"scopeURL",
")",
":",
"assert",
"isinstance",
"(",
"scopeURL",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'scopeURL' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"scopeURL",
")",
"su... | Function path: ServiceWorker.startWorker
Domain: ServiceWorker
Method name: startWorker
Parameters:
Required arguments:
'scopeURL' (type: string) -> No description
No return value. | [
"Function",
"path",
":",
"ServiceWorker",
".",
"startWorker",
"Domain",
":",
"ServiceWorker",
"Method",
"name",
":",
"startWorker",
"Parameters",
":",
"Required",
"arguments",
":",
"scopeURL",
"(",
"type",
":",
"string",
")",
"-",
">",
"No",
"description",
"No... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5062-L5079 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.ServiceWorker_skipWaiting | def ServiceWorker_skipWaiting(self, scopeURL):
"""
Function path: ServiceWorker.skipWaiting
Domain: ServiceWorker
Method name: skipWaiting
Parameters:
Required arguments:
'scopeURL' (type: string) -> No description
No return value.
"""
assert isinstance(scopeURL, (str,)
), "Argu... | python | def ServiceWorker_skipWaiting(self, scopeURL):
"""
Function path: ServiceWorker.skipWaiting
Domain: ServiceWorker
Method name: skipWaiting
Parameters:
Required arguments:
'scopeURL' (type: string) -> No description
No return value.
"""
assert isinstance(scopeURL, (str,)
), "Argu... | [
"def",
"ServiceWorker_skipWaiting",
"(",
"self",
",",
"scopeURL",
")",
":",
"assert",
"isinstance",
"(",
"scopeURL",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'scopeURL' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"scopeURL",
")",
"su... | Function path: ServiceWorker.skipWaiting
Domain: ServiceWorker
Method name: skipWaiting
Parameters:
Required arguments:
'scopeURL' (type: string) -> No description
No return value. | [
"Function",
"path",
":",
"ServiceWorker",
".",
"skipWaiting",
"Domain",
":",
"ServiceWorker",
"Method",
"name",
":",
"skipWaiting",
"Parameters",
":",
"Required",
"arguments",
":",
"scopeURL",
"(",
"type",
":",
"string",
")",
"-",
">",
"No",
"description",
"No... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5081-L5098 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.ServiceWorker_stopWorker | def ServiceWorker_stopWorker(self, versionId):
"""
Function path: ServiceWorker.stopWorker
Domain: ServiceWorker
Method name: stopWorker
Parameters:
Required arguments:
'versionId' (type: string) -> No description
No return value.
"""
assert isinstance(versionId, (str,)
), "Argu... | python | def ServiceWorker_stopWorker(self, versionId):
"""
Function path: ServiceWorker.stopWorker
Domain: ServiceWorker
Method name: stopWorker
Parameters:
Required arguments:
'versionId' (type: string) -> No description
No return value.
"""
assert isinstance(versionId, (str,)
), "Argu... | [
"def",
"ServiceWorker_stopWorker",
"(",
"self",
",",
"versionId",
")",
":",
"assert",
"isinstance",
"(",
"versionId",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'versionId' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"versionId",
")",
... | Function path: ServiceWorker.stopWorker
Domain: ServiceWorker
Method name: stopWorker
Parameters:
Required arguments:
'versionId' (type: string) -> No description
No return value. | [
"Function",
"path",
":",
"ServiceWorker",
".",
"stopWorker",
"Domain",
":",
"ServiceWorker",
"Method",
"name",
":",
"stopWorker",
"Parameters",
":",
"Required",
"arguments",
":",
"versionId",
"(",
"type",
":",
"string",
")",
"-",
">",
"No",
"description",
"No"... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5100-L5117 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.ServiceWorker_inspectWorker | def ServiceWorker_inspectWorker(self, versionId):
"""
Function path: ServiceWorker.inspectWorker
Domain: ServiceWorker
Method name: inspectWorker
Parameters:
Required arguments:
'versionId' (type: string) -> No description
No return value.
"""
assert isinstance(versionId, (str,)
... | python | def ServiceWorker_inspectWorker(self, versionId):
"""
Function path: ServiceWorker.inspectWorker
Domain: ServiceWorker
Method name: inspectWorker
Parameters:
Required arguments:
'versionId' (type: string) -> No description
No return value.
"""
assert isinstance(versionId, (str,)
... | [
"def",
"ServiceWorker_inspectWorker",
"(",
"self",
",",
"versionId",
")",
":",
"assert",
"isinstance",
"(",
"versionId",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'versionId' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"versionId",
")",... | Function path: ServiceWorker.inspectWorker
Domain: ServiceWorker
Method name: inspectWorker
Parameters:
Required arguments:
'versionId' (type: string) -> No description
No return value. | [
"Function",
"path",
":",
"ServiceWorker",
".",
"inspectWorker",
"Domain",
":",
"ServiceWorker",
"Method",
"name",
":",
"inspectWorker",
"Parameters",
":",
"Required",
"arguments",
":",
"versionId",
"(",
"type",
":",
"string",
")",
"-",
">",
"No",
"description",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5131-L5148 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.ServiceWorker_setForceUpdateOnPageLoad | def ServiceWorker_setForceUpdateOnPageLoad(self, forceUpdateOnPageLoad):
"""
Function path: ServiceWorker.setForceUpdateOnPageLoad
Domain: ServiceWorker
Method name: setForceUpdateOnPageLoad
Parameters:
Required arguments:
'forceUpdateOnPageLoad' (type: boolean) -> No description
No return v... | python | def ServiceWorker_setForceUpdateOnPageLoad(self, forceUpdateOnPageLoad):
"""
Function path: ServiceWorker.setForceUpdateOnPageLoad
Domain: ServiceWorker
Method name: setForceUpdateOnPageLoad
Parameters:
Required arguments:
'forceUpdateOnPageLoad' (type: boolean) -> No description
No return v... | [
"def",
"ServiceWorker_setForceUpdateOnPageLoad",
"(",
"self",
",",
"forceUpdateOnPageLoad",
")",
":",
"assert",
"isinstance",
"(",
"forceUpdateOnPageLoad",
",",
"(",
"bool",
",",
")",
")",
",",
"\"Argument 'forceUpdateOnPageLoad' must be of type '['bool']'. Received type: '%s'\... | Function path: ServiceWorker.setForceUpdateOnPageLoad
Domain: ServiceWorker
Method name: setForceUpdateOnPageLoad
Parameters:
Required arguments:
'forceUpdateOnPageLoad' (type: boolean) -> No description
No return value. | [
"Function",
"path",
":",
"ServiceWorker",
".",
"setForceUpdateOnPageLoad",
"Domain",
":",
"ServiceWorker",
"Method",
"name",
":",
"setForceUpdateOnPageLoad",
"Parameters",
":",
"Required",
"arguments",
":",
"forceUpdateOnPageLoad",
"(",
"type",
":",
"boolean",
")",
"-... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5150-L5168 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.ServiceWorker_deliverPushMessage | def ServiceWorker_deliverPushMessage(self, origin, registrationId, data):
"""
Function path: ServiceWorker.deliverPushMessage
Domain: ServiceWorker
Method name: deliverPushMessage
Parameters:
Required arguments:
'origin' (type: string) -> No description
'registrationId' (type: string) -> N... | python | def ServiceWorker_deliverPushMessage(self, origin, registrationId, data):
"""
Function path: ServiceWorker.deliverPushMessage
Domain: ServiceWorker
Method name: deliverPushMessage
Parameters:
Required arguments:
'origin' (type: string) -> No description
'registrationId' (type: string) -> N... | [
"def",
"ServiceWorker_deliverPushMessage",
"(",
"self",
",",
"origin",
",",
"registrationId",
",",
"data",
")",
":",
"assert",
"isinstance",
"(",
"origin",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'origin' must be of type '['str']'. Received type: '%s'\"",
"%"... | Function path: ServiceWorker.deliverPushMessage
Domain: ServiceWorker
Method name: deliverPushMessage
Parameters:
Required arguments:
'origin' (type: string) -> No description
'registrationId' (type: string) -> No description
'data' (type: string) -> No description
No return value. | [
"Function",
"path",
":",
"ServiceWorker",
".",
"deliverPushMessage",
"Domain",
":",
"ServiceWorker",
"Method",
"name",
":",
"deliverPushMessage",
"Parameters",
":",
"Required",
"arguments",
":",
"origin",
"(",
"type",
":",
"string",
")",
"-",
">",
"No",
"descrip... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5170-L5195 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.ServiceWorker_dispatchSyncEvent | def ServiceWorker_dispatchSyncEvent(self, origin, registrationId, tag,
lastChance):
"""
Function path: ServiceWorker.dispatchSyncEvent
Domain: ServiceWorker
Method name: dispatchSyncEvent
Parameters:
Required arguments:
'origin' (type: string) -> No description
'registrationId' (type:... | python | def ServiceWorker_dispatchSyncEvent(self, origin, registrationId, tag,
lastChance):
"""
Function path: ServiceWorker.dispatchSyncEvent
Domain: ServiceWorker
Method name: dispatchSyncEvent
Parameters:
Required arguments:
'origin' (type: string) -> No description
'registrationId' (type:... | [
"def",
"ServiceWorker_dispatchSyncEvent",
"(",
"self",
",",
"origin",
",",
"registrationId",
",",
"tag",
",",
"lastChance",
")",
":",
"assert",
"isinstance",
"(",
"origin",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'origin' must be of type '['str']'. Received... | Function path: ServiceWorker.dispatchSyncEvent
Domain: ServiceWorker
Method name: dispatchSyncEvent
Parameters:
Required arguments:
'origin' (type: string) -> No description
'registrationId' (type: string) -> No description
'tag' (type: string) -> No description
'lastChance' (type: b... | [
"Function",
"path",
":",
"ServiceWorker",
".",
"dispatchSyncEvent",
"Domain",
":",
"ServiceWorker",
"Method",
"name",
":",
"dispatchSyncEvent",
"Parameters",
":",
"Required",
"arguments",
":",
"origin",
"(",
"type",
":",
"string",
")",
"-",
">",
"No",
"descripti... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5197-L5228 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Input_setIgnoreInputEvents | def Input_setIgnoreInputEvents(self, ignore):
"""
Function path: Input.setIgnoreInputEvents
Domain: Input
Method name: setIgnoreInputEvents
Parameters:
Required arguments:
'ignore' (type: boolean) -> Ignores input events processing when set to true.
No return value.
Description: Ignore... | python | def Input_setIgnoreInputEvents(self, ignore):
"""
Function path: Input.setIgnoreInputEvents
Domain: Input
Method name: setIgnoreInputEvents
Parameters:
Required arguments:
'ignore' (type: boolean) -> Ignores input events processing when set to true.
No return value.
Description: Ignore... | [
"def",
"Input_setIgnoreInputEvents",
"(",
"self",
",",
"ignore",
")",
":",
"assert",
"isinstance",
"(",
"ignore",
",",
"(",
"bool",
",",
")",
")",
",",
"\"Argument 'ignore' must be of type '['bool']'. Received type: '%s'\"",
"%",
"type",
"(",
"ignore",
")",
"subdom_... | Function path: Input.setIgnoreInputEvents
Domain: Input
Method name: setIgnoreInputEvents
Parameters:
Required arguments:
'ignore' (type: boolean) -> Ignores input events processing when set to true.
No return value.
Description: Ignores input events (useful while auditing page). | [
"Function",
"path",
":",
"Input",
".",
"setIgnoreInputEvents",
"Domain",
":",
"Input",
"Method",
"name",
":",
"setIgnoreInputEvents",
"Parameters",
":",
"Required",
"arguments",
":",
"ignore",
"(",
"type",
":",
"boolean",
")",
"-",
">",
"Ignores",
"input",
"ev... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5230-L5248 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Input_dispatchMouseEvent | def Input_dispatchMouseEvent(self, type, x, y, **kwargs):
"""
Function path: Input.dispatchMouseEvent
Domain: Input
Method name: dispatchMouseEvent
Parameters:
Required arguments:
'type' (type: string) -> Type of the mouse event.
'x' (type: number) -> X coordinate of the event relative to ... | python | def Input_dispatchMouseEvent(self, type, x, y, **kwargs):
"""
Function path: Input.dispatchMouseEvent
Domain: Input
Method name: dispatchMouseEvent
Parameters:
Required arguments:
'type' (type: string) -> Type of the mouse event.
'x' (type: number) -> X coordinate of the event relative to ... | [
"def",
"Input_dispatchMouseEvent",
"(",
"self",
",",
"type",
",",
"x",
",",
"y",
",",
"*",
"*",
"kwargs",
")",
":",
"assert",
"isinstance",
"(",
"type",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'type' must be of type '['str']'. Received type: '%s'\"",
... | Function path: Input.dispatchMouseEvent
Domain: Input
Method name: dispatchMouseEvent
Parameters:
Required arguments:
'type' (type: string) -> Type of the mouse event.
'x' (type: number) -> X coordinate of the event relative to the main frame's viewport in CSS pixels.
'y' (type: number) -... | [
"Function",
"path",
":",
"Input",
".",
"dispatchMouseEvent",
"Domain",
":",
"Input",
"Method",
"name",
":",
"dispatchMouseEvent",
"Parameters",
":",
"Required",
"arguments",
":",
"type",
"(",
"type",
":",
"string",
")",
"-",
">",
"Type",
"of",
"the",
"mouse"... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5333-L5391 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Input_dispatchTouchEvent | def Input_dispatchTouchEvent(self, type, touchPoints, **kwargs):
"""
Function path: Input.dispatchTouchEvent
Domain: Input
Method name: dispatchTouchEvent
WARNING: This function is marked 'Experimental'!
Parameters:
Required arguments:
'type' (type: string) -> Type of the touch event. Tou... | python | def Input_dispatchTouchEvent(self, type, touchPoints, **kwargs):
"""
Function path: Input.dispatchTouchEvent
Domain: Input
Method name: dispatchTouchEvent
WARNING: This function is marked 'Experimental'!
Parameters:
Required arguments:
'type' (type: string) -> Type of the touch event. Tou... | [
"def",
"Input_dispatchTouchEvent",
"(",
"self",
",",
"type",
",",
"touchPoints",
",",
"*",
"*",
"kwargs",
")",
":",
"assert",
"isinstance",
"(",
"type",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'type' must be of type '['str']'. Received type: '%s'\"",
"%",... | Function path: Input.dispatchTouchEvent
Domain: Input
Method name: dispatchTouchEvent
WARNING: This function is marked 'Experimental'!
Parameters:
Required arguments:
'type' (type: string) -> Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart... | [
"Function",
"path",
":",
"Input",
".",
"dispatchTouchEvent",
"Domain",
":",
"Input",
"Method",
"name",
":",
"dispatchTouchEvent",
"WARNING",
":",
"This",
"function",
"is",
"marked",
"Experimental",
"!",
"Parameters",
":",
"Required",
"arguments",
":",
"type",
"(... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5393-L5428 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Input_synthesizePinchGesture | def Input_synthesizePinchGesture(self, x, y, scaleFactor, **kwargs):
"""
Function path: Input.synthesizePinchGesture
Domain: Input
Method name: synthesizePinchGesture
WARNING: This function is marked 'Experimental'!
Parameters:
Required arguments:
'x' (type: number) -> X coordinate of the... | python | def Input_synthesizePinchGesture(self, x, y, scaleFactor, **kwargs):
"""
Function path: Input.synthesizePinchGesture
Domain: Input
Method name: synthesizePinchGesture
WARNING: This function is marked 'Experimental'!
Parameters:
Required arguments:
'x' (type: number) -> X coordinate of the... | [
"def",
"Input_synthesizePinchGesture",
"(",
"self",
",",
"x",
",",
"y",
",",
"scaleFactor",
",",
"*",
"*",
"kwargs",
")",
":",
"assert",
"isinstance",
"(",
"x",
",",
"(",
"float",
",",
"int",
")",
")",
",",
"\"Argument 'x' must be of type '['float', 'int']'. R... | Function path: Input.synthesizePinchGesture
Domain: Input
Method name: synthesizePinchGesture
WARNING: This function is marked 'Experimental'!
Parameters:
Required arguments:
'x' (type: number) -> X coordinate of the start of the gesture in CSS pixels.
'y' (type: number) -> Y coordinate ... | [
"Function",
"path",
":",
"Input",
".",
"synthesizePinchGesture",
"Domain",
":",
"Input",
"Method",
"name",
":",
"synthesizePinchGesture",
"WARNING",
":",
"This",
"function",
"is",
"marked",
"Experimental",
"!",
"Parameters",
":",
"Required",
"arguments",
":",
"x",... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5491-L5530 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.LayerTree_loadSnapshot | def LayerTree_loadSnapshot(self, tiles):
"""
Function path: LayerTree.loadSnapshot
Domain: LayerTree
Method name: loadSnapshot
Parameters:
Required arguments:
'tiles' (type: array) -> An array of tiles composing the snapshot.
Returns:
'snapshotId' (type: SnapshotId) -> The id of the snap... | python | def LayerTree_loadSnapshot(self, tiles):
"""
Function path: LayerTree.loadSnapshot
Domain: LayerTree
Method name: loadSnapshot
Parameters:
Required arguments:
'tiles' (type: array) -> An array of tiles composing the snapshot.
Returns:
'snapshotId' (type: SnapshotId) -> The id of the snap... | [
"def",
"LayerTree_loadSnapshot",
"(",
"self",
",",
"tiles",
")",
":",
"assert",
"isinstance",
"(",
"tiles",
",",
"(",
"list",
",",
"tuple",
")",
")",
",",
"\"Argument 'tiles' must be of type '['list', 'tuple']'. Received type: '%s'\"",
"%",
"type",
"(",
"tiles",
")"... | Function path: LayerTree.loadSnapshot
Domain: LayerTree
Method name: loadSnapshot
Parameters:
Required arguments:
'tiles' (type: array) -> An array of tiles composing the snapshot.
Returns:
'snapshotId' (type: SnapshotId) -> The id of the snapshot.
Description: Returns the snapshot ide... | [
"Function",
"path",
":",
"LayerTree",
".",
"loadSnapshot",
"Domain",
":",
"LayerTree",
"Method",
"name",
":",
"loadSnapshot",
"Parameters",
":",
"Required",
"arguments",
":",
"tiles",
"(",
"type",
":",
"array",
")",
"-",
">",
"An",
"array",
"of",
"tiles",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5715-L5734 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Tracing_recordClockSyncMarker | def Tracing_recordClockSyncMarker(self, syncId):
"""
Function path: Tracing.recordClockSyncMarker
Domain: Tracing
Method name: recordClockSyncMarker
Parameters:
Required arguments:
'syncId' (type: string) -> The ID of this clock sync marker
No return value.
Description: Record a clock ... | python | def Tracing_recordClockSyncMarker(self, syncId):
"""
Function path: Tracing.recordClockSyncMarker
Domain: Tracing
Method name: recordClockSyncMarker
Parameters:
Required arguments:
'syncId' (type: string) -> The ID of this clock sync marker
No return value.
Description: Record a clock ... | [
"def",
"Tracing_recordClockSyncMarker",
"(",
"self",
",",
"syncId",
")",
":",
"assert",
"isinstance",
"(",
"syncId",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'syncId' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"syncId",
")",
"subdom... | Function path: Tracing.recordClockSyncMarker
Domain: Tracing
Method name: recordClockSyncMarker
Parameters:
Required arguments:
'syncId' (type: string) -> The ID of this clock sync marker
No return value.
Description: Record a clock sync marker in the trace. | [
"Function",
"path",
":",
"Tracing",
".",
"recordClockSyncMarker",
"Domain",
":",
"Tracing",
"Method",
"name",
":",
"recordClockSyncMarker",
"Parameters",
":",
"Required",
"arguments",
":",
"syncId",
"(",
"type",
":",
"string",
")",
"-",
">",
"The",
"ID",
"of",... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5968-L5986 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Animation_setPlaybackRate | def Animation_setPlaybackRate(self, playbackRate):
"""
Function path: Animation.setPlaybackRate
Domain: Animation
Method name: setPlaybackRate
Parameters:
Required arguments:
'playbackRate' (type: number) -> Playback rate for animations on page
No return value.
Description: Sets the pl... | python | def Animation_setPlaybackRate(self, playbackRate):
"""
Function path: Animation.setPlaybackRate
Domain: Animation
Method name: setPlaybackRate
Parameters:
Required arguments:
'playbackRate' (type: number) -> Playback rate for animations on page
No return value.
Description: Sets the pl... | [
"def",
"Animation_setPlaybackRate",
"(",
"self",
",",
"playbackRate",
")",
":",
"assert",
"isinstance",
"(",
"playbackRate",
",",
"(",
"float",
",",
"int",
")",
")",
",",
"\"Argument 'playbackRate' must be of type '['float', 'int']'. Received type: '%s'\"",
"%",
"type",
... | Function path: Animation.setPlaybackRate
Domain: Animation
Method name: setPlaybackRate
Parameters:
Required arguments:
'playbackRate' (type: number) -> Playback rate for animations on page
No return value.
Description: Sets the playback rate of the document timeline. | [
"Function",
"path",
":",
"Animation",
".",
"setPlaybackRate",
"Domain",
":",
"Animation",
"Method",
"name",
":",
"setPlaybackRate",
"Parameters",
":",
"Required",
"arguments",
":",
"playbackRate",
"(",
"type",
":",
"number",
")",
"-",
">",
"Playback",
"rate",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6028-L6046 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Animation_getCurrentTime | def Animation_getCurrentTime(self, id):
"""
Function path: Animation.getCurrentTime
Domain: Animation
Method name: getCurrentTime
Parameters:
Required arguments:
'id' (type: string) -> Id of animation.
Returns:
'currentTime' (type: number) -> Current time of the page.
Description: ... | python | def Animation_getCurrentTime(self, id):
"""
Function path: Animation.getCurrentTime
Domain: Animation
Method name: getCurrentTime
Parameters:
Required arguments:
'id' (type: string) -> Id of animation.
Returns:
'currentTime' (type: number) -> Current time of the page.
Description: ... | [
"def",
"Animation_getCurrentTime",
"(",
"self",
",",
"id",
")",
":",
"assert",
"isinstance",
"(",
"id",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'id' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"id",
")",
"subdom_funcs",
"=",
"se... | Function path: Animation.getCurrentTime
Domain: Animation
Method name: getCurrentTime
Parameters:
Required arguments:
'id' (type: string) -> Id of animation.
Returns:
'currentTime' (type: number) -> Current time of the page.
Description: Returns the current time of the an animation. | [
"Function",
"path",
":",
"Animation",
".",
"getCurrentTime",
"Domain",
":",
"Animation",
"Method",
"name",
":",
"getCurrentTime",
"Parameters",
":",
"Required",
"arguments",
":",
"id",
"(",
"type",
":",
"string",
")",
"-",
">",
"Id",
"of",
"animation",
".",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6048-L6066 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Animation_setPaused | def Animation_setPaused(self, animations, paused):
"""
Function path: Animation.setPaused
Domain: Animation
Method name: setPaused
Parameters:
Required arguments:
'animations' (type: array) -> Animations to set the pause state of.
'paused' (type: boolean) -> Paused state to set to.
No r... | python | def Animation_setPaused(self, animations, paused):
"""
Function path: Animation.setPaused
Domain: Animation
Method name: setPaused
Parameters:
Required arguments:
'animations' (type: array) -> Animations to set the pause state of.
'paused' (type: boolean) -> Paused state to set to.
No r... | [
"def",
"Animation_setPaused",
"(",
"self",
",",
"animations",
",",
"paused",
")",
":",
"assert",
"isinstance",
"(",
"animations",
",",
"(",
"list",
",",
"tuple",
")",
")",
",",
"\"Argument 'animations' must be of type '['list', 'tuple']'. Received type: '%s'\"",
"%",
... | Function path: Animation.setPaused
Domain: Animation
Method name: setPaused
Parameters:
Required arguments:
'animations' (type: array) -> Animations to set the pause state of.
'paused' (type: boolean) -> Paused state to set to.
No return value.
Description: Sets the paused state of a ... | [
"Function",
"path",
":",
"Animation",
".",
"setPaused",
"Domain",
":",
"Animation",
"Method",
"name",
":",
"setPaused",
"Parameters",
":",
"Required",
"arguments",
":",
"animations",
"(",
"type",
":",
"array",
")",
"-",
">",
"Animations",
"to",
"set",
"the",... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6068-L6090 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Animation_setTiming | def Animation_setTiming(self, animationId, duration, delay):
"""
Function path: Animation.setTiming
Domain: Animation
Method name: setTiming
Parameters:
Required arguments:
'animationId' (type: string) -> Animation id.
'duration' (type: number) -> Duration of the animation.
'delay' (t... | python | def Animation_setTiming(self, animationId, duration, delay):
"""
Function path: Animation.setTiming
Domain: Animation
Method name: setTiming
Parameters:
Required arguments:
'animationId' (type: string) -> Animation id.
'duration' (type: number) -> Duration of the animation.
'delay' (t... | [
"def",
"Animation_setTiming",
"(",
"self",
",",
"animationId",
",",
"duration",
",",
"delay",
")",
":",
"assert",
"isinstance",
"(",
"animationId",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'animationId' must be of type '['str']'. Received type: '%s'\"",
"%",
... | Function path: Animation.setTiming
Domain: Animation
Method name: setTiming
Parameters:
Required arguments:
'animationId' (type: string) -> Animation id.
'duration' (type: number) -> Duration of the animation.
'delay' (type: number) -> Delay of the animation.
No return value.
Des... | [
"Function",
"path",
":",
"Animation",
".",
"setTiming",
"Domain",
":",
"Animation",
"Method",
"name",
":",
"setTiming",
"Parameters",
":",
"Required",
"arguments",
":",
"animationId",
"(",
"type",
":",
"string",
")",
"-",
">",
"Animation",
"id",
".",
"durati... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6092-L6118 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Animation_seekAnimations | def Animation_seekAnimations(self, animations, currentTime):
"""
Function path: Animation.seekAnimations
Domain: Animation
Method name: seekAnimations
Parameters:
Required arguments:
'animations' (type: array) -> List of animation ids to seek.
'currentTime' (type: number) -> Set the curren... | python | def Animation_seekAnimations(self, animations, currentTime):
"""
Function path: Animation.seekAnimations
Domain: Animation
Method name: seekAnimations
Parameters:
Required arguments:
'animations' (type: array) -> List of animation ids to seek.
'currentTime' (type: number) -> Set the curren... | [
"def",
"Animation_seekAnimations",
"(",
"self",
",",
"animations",
",",
"currentTime",
")",
":",
"assert",
"isinstance",
"(",
"animations",
",",
"(",
"list",
",",
"tuple",
")",
")",
",",
"\"Argument 'animations' must be of type '['list', 'tuple']'. Received type: '%s'\"",... | Function path: Animation.seekAnimations
Domain: Animation
Method name: seekAnimations
Parameters:
Required arguments:
'animations' (type: array) -> List of animation ids to seek.
'currentTime' (type: number) -> Set the current time of each animation.
No return value.
Description: Seek... | [
"Function",
"path",
":",
"Animation",
".",
"seekAnimations",
"Domain",
":",
"Animation",
"Method",
"name",
":",
"seekAnimations",
"Parameters",
":",
"Required",
"arguments",
":",
"animations",
"(",
"type",
":",
"array",
")",
"-",
">",
"List",
"of",
"animation"... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6120-L6142 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Animation_releaseAnimations | def Animation_releaseAnimations(self, animations):
"""
Function path: Animation.releaseAnimations
Domain: Animation
Method name: releaseAnimations
Parameters:
Required arguments:
'animations' (type: array) -> List of animation ids to seek.
No return value.
Description: Releases a set o... | python | def Animation_releaseAnimations(self, animations):
"""
Function path: Animation.releaseAnimations
Domain: Animation
Method name: releaseAnimations
Parameters:
Required arguments:
'animations' (type: array) -> List of animation ids to seek.
No return value.
Description: Releases a set o... | [
"def",
"Animation_releaseAnimations",
"(",
"self",
",",
"animations",
")",
":",
"assert",
"isinstance",
"(",
"animations",
",",
"(",
"list",
",",
"tuple",
")",
")",
",",
"\"Argument 'animations' must be of type '['list', 'tuple']'. Received type: '%s'\"",
"%",
"type",
"... | Function path: Animation.releaseAnimations
Domain: Animation
Method name: releaseAnimations
Parameters:
Required arguments:
'animations' (type: array) -> List of animation ids to seek.
No return value.
Description: Releases a set of animations to no longer be manipulated. | [
"Function",
"path",
":",
"Animation",
".",
"releaseAnimations",
"Domain",
":",
"Animation",
"Method",
"name",
":",
"releaseAnimations",
"Parameters",
":",
"Required",
"arguments",
":",
"animations",
"(",
"type",
":",
"array",
")",
"-",
">",
"List",
"of",
"anim... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6144-L6162 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Animation_resolveAnimation | def Animation_resolveAnimation(self, animationId):
"""
Function path: Animation.resolveAnimation
Domain: Animation
Method name: resolveAnimation
Parameters:
Required arguments:
'animationId' (type: string) -> Animation id.
Returns:
'remoteObject' (type: Runtime.RemoteObject) -> Correspon... | python | def Animation_resolveAnimation(self, animationId):
"""
Function path: Animation.resolveAnimation
Domain: Animation
Method name: resolveAnimation
Parameters:
Required arguments:
'animationId' (type: string) -> Animation id.
Returns:
'remoteObject' (type: Runtime.RemoteObject) -> Correspon... | [
"def",
"Animation_resolveAnimation",
"(",
"self",
",",
"animationId",
")",
":",
"assert",
"isinstance",
"(",
"animationId",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'animationId' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"animationId",... | Function path: Animation.resolveAnimation
Domain: Animation
Method name: resolveAnimation
Parameters:
Required arguments:
'animationId' (type: string) -> Animation id.
Returns:
'remoteObject' (type: Runtime.RemoteObject) -> Corresponding remote object.
Description: Gets the remote obje... | [
"Function",
"path",
":",
"Animation",
".",
"resolveAnimation",
"Domain",
":",
"Animation",
"Method",
"name",
":",
"resolveAnimation",
"Parameters",
":",
"Required",
"arguments",
":",
"animationId",
"(",
"type",
":",
"string",
")",
"-",
">",
"Animation",
"id",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6164-L6183 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Storage_clearDataForOrigin | def Storage_clearDataForOrigin(self, origin, storageTypes):
"""
Function path: Storage.clearDataForOrigin
Domain: Storage
Method name: clearDataForOrigin
Parameters:
Required arguments:
'origin' (type: string) -> Security origin.
'storageTypes' (type: string) -> Comma separated origin name... | python | def Storage_clearDataForOrigin(self, origin, storageTypes):
"""
Function path: Storage.clearDataForOrigin
Domain: Storage
Method name: clearDataForOrigin
Parameters:
Required arguments:
'origin' (type: string) -> Security origin.
'storageTypes' (type: string) -> Comma separated origin name... | [
"def",
"Storage_clearDataForOrigin",
"(",
"self",
",",
"origin",
",",
"storageTypes",
")",
":",
"assert",
"isinstance",
"(",
"origin",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'origin' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"ori... | Function path: Storage.clearDataForOrigin
Domain: Storage
Method name: clearDataForOrigin
Parameters:
Required arguments:
'origin' (type: string) -> Security origin.
'storageTypes' (type: string) -> Comma separated origin names.
No return value.
Description: Clears storage for origin. | [
"Function",
"path",
":",
"Storage",
".",
"clearDataForOrigin",
"Domain",
":",
"Storage",
"Method",
"name",
":",
"clearDataForOrigin",
"Parameters",
":",
"Required",
"arguments",
":",
"origin",
"(",
"type",
":",
"string",
")",
"-",
">",
"Security",
"origin",
".... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6215-L6237 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Storage_getUsageAndQuota | def Storage_getUsageAndQuota(self, origin):
"""
Function path: Storage.getUsageAndQuota
Domain: Storage
Method name: getUsageAndQuota
Parameters:
Required arguments:
'origin' (type: string) -> Security origin.
Returns:
'usage' (type: number) -> Storage usage (bytes).
'quota' (type: n... | python | def Storage_getUsageAndQuota(self, origin):
"""
Function path: Storage.getUsageAndQuota
Domain: Storage
Method name: getUsageAndQuota
Parameters:
Required arguments:
'origin' (type: string) -> Security origin.
Returns:
'usage' (type: number) -> Storage usage (bytes).
'quota' (type: n... | [
"def",
"Storage_getUsageAndQuota",
"(",
"self",
",",
"origin",
")",
":",
"assert",
"isinstance",
"(",
"origin",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'origin' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"origin",
")",
"subdom_func... | Function path: Storage.getUsageAndQuota
Domain: Storage
Method name: getUsageAndQuota
Parameters:
Required arguments:
'origin' (type: string) -> Security origin.
Returns:
'usage' (type: number) -> Storage usage (bytes).
'quota' (type: number) -> Storage quota (bytes).
'usageBreakdown... | [
"Function",
"path",
":",
"Storage",
".",
"getUsageAndQuota",
"Domain",
":",
"Storage",
"Method",
"name",
":",
"getUsageAndQuota",
"Parameters",
":",
"Required",
"arguments",
":",
"origin",
"(",
"type",
":",
"string",
")",
"-",
">",
"Security",
"origin",
".",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6239-L6260 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Storage_trackCacheStorageForOrigin | def Storage_trackCacheStorageForOrigin(self, origin):
"""
Function path: Storage.trackCacheStorageForOrigin
Domain: Storage
Method name: trackCacheStorageForOrigin
Parameters:
Required arguments:
'origin' (type: string) -> Security origin.
No return value.
Description: Registers origin... | python | def Storage_trackCacheStorageForOrigin(self, origin):
"""
Function path: Storage.trackCacheStorageForOrigin
Domain: Storage
Method name: trackCacheStorageForOrigin
Parameters:
Required arguments:
'origin' (type: string) -> Security origin.
No return value.
Description: Registers origin... | [
"def",
"Storage_trackCacheStorageForOrigin",
"(",
"self",
",",
"origin",
")",
":",
"assert",
"isinstance",
"(",
"origin",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'origin' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"origin",
")",
"s... | Function path: Storage.trackCacheStorageForOrigin
Domain: Storage
Method name: trackCacheStorageForOrigin
Parameters:
Required arguments:
'origin' (type: string) -> Security origin.
No return value.
Description: Registers origin to be notified when an update occurs to its cache storage lis... | [
"Function",
"path",
":",
"Storage",
".",
"trackCacheStorageForOrigin",
"Domain",
":",
"Storage",
"Method",
"name",
":",
"trackCacheStorageForOrigin",
"Parameters",
":",
"Required",
"arguments",
":",
"origin",
"(",
"type",
":",
"string",
")",
"-",
">",
"Security",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6262-L6280 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Storage_untrackCacheStorageForOrigin | def Storage_untrackCacheStorageForOrigin(self, origin):
"""
Function path: Storage.untrackCacheStorageForOrigin
Domain: Storage
Method name: untrackCacheStorageForOrigin
Parameters:
Required arguments:
'origin' (type: string) -> Security origin.
No return value.
Description: Unregister... | python | def Storage_untrackCacheStorageForOrigin(self, origin):
"""
Function path: Storage.untrackCacheStorageForOrigin
Domain: Storage
Method name: untrackCacheStorageForOrigin
Parameters:
Required arguments:
'origin' (type: string) -> Security origin.
No return value.
Description: Unregister... | [
"def",
"Storage_untrackCacheStorageForOrigin",
"(",
"self",
",",
"origin",
")",
":",
"assert",
"isinstance",
"(",
"origin",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'origin' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"origin",
")",
... | Function path: Storage.untrackCacheStorageForOrigin
Domain: Storage
Method name: untrackCacheStorageForOrigin
Parameters:
Required arguments:
'origin' (type: string) -> Security origin.
No return value.
Description: Unregisters origin from receiving notifications for cache storage. | [
"Function",
"path",
":",
"Storage",
".",
"untrackCacheStorageForOrigin",
"Domain",
":",
"Storage",
"Method",
"name",
":",
"untrackCacheStorageForOrigin",
"Parameters",
":",
"Required",
"arguments",
":",
"origin",
"(",
"type",
":",
"string",
")",
"-",
">",
"Securit... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6282-L6300 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Log_startViolationsReport | def Log_startViolationsReport(self, config):
"""
Function path: Log.startViolationsReport
Domain: Log
Method name: startViolationsReport
Parameters:
Required arguments:
'config' (type: array) -> Configuration for violations.
No return value.
Description: start violation reporting.
""... | python | def Log_startViolationsReport(self, config):
"""
Function path: Log.startViolationsReport
Domain: Log
Method name: startViolationsReport
Parameters:
Required arguments:
'config' (type: array) -> Configuration for violations.
No return value.
Description: start violation reporting.
""... | [
"def",
"Log_startViolationsReport",
"(",
"self",
",",
"config",
")",
":",
"assert",
"isinstance",
"(",
"config",
",",
"(",
"list",
",",
"tuple",
")",
")",
",",
"\"Argument 'config' must be of type '['list', 'tuple']'. Received type: '%s'\"",
"%",
"type",
"(",
"config"... | Function path: Log.startViolationsReport
Domain: Log
Method name: startViolationsReport
Parameters:
Required arguments:
'config' (type: array) -> Configuration for violations.
No return value.
Description: start violation reporting. | [
"Function",
"path",
":",
"Log",
".",
"startViolationsReport",
"Domain",
":",
"Log",
"Method",
"name",
":",
"startViolationsReport",
"Parameters",
":",
"Required",
"arguments",
":",
"config",
"(",
"type",
":",
"array",
")",
"-",
">",
"Configuration",
"for",
"vi... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6341-L6359 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Tethering_bind | def Tethering_bind(self, port):
"""
Function path: Tethering.bind
Domain: Tethering
Method name: bind
Parameters:
Required arguments:
'port' (type: integer) -> Port number to bind.
No return value.
Description: Request browser port binding.
"""
assert isinstance(port, (int,)
... | python | def Tethering_bind(self, port):
"""
Function path: Tethering.bind
Domain: Tethering
Method name: bind
Parameters:
Required arguments:
'port' (type: integer) -> Port number to bind.
No return value.
Description: Request browser port binding.
"""
assert isinstance(port, (int,)
... | [
"def",
"Tethering_bind",
"(",
"self",
",",
"port",
")",
":",
"assert",
"isinstance",
"(",
"port",
",",
"(",
"int",
",",
")",
")",
",",
"\"Argument 'port' must be of type '['int']'. Received type: '%s'\"",
"%",
"type",
"(",
"port",
")",
"subdom_funcs",
"=",
"self... | Function path: Tethering.bind
Domain: Tethering
Method name: bind
Parameters:
Required arguments:
'port' (type: integer) -> Port number to bind.
No return value.
Description: Request browser port binding. | [
"Function",
"path",
":",
"Tethering",
".",
"bind",
"Domain",
":",
"Tethering",
"Method",
"name",
":",
"bind",
"Parameters",
":",
"Required",
"arguments",
":",
"port",
"(",
"type",
":",
"integer",
")",
"-",
">",
"Port",
"number",
"to",
"bind",
".",
"No",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6391-L6408 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Tethering_unbind | def Tethering_unbind(self, port):
"""
Function path: Tethering.unbind
Domain: Tethering
Method name: unbind
Parameters:
Required arguments:
'port' (type: integer) -> Port number to unbind.
No return value.
Description: Request browser port unbinding.
"""
assert isinstance(port, (in... | python | def Tethering_unbind(self, port):
"""
Function path: Tethering.unbind
Domain: Tethering
Method name: unbind
Parameters:
Required arguments:
'port' (type: integer) -> Port number to unbind.
No return value.
Description: Request browser port unbinding.
"""
assert isinstance(port, (in... | [
"def",
"Tethering_unbind",
"(",
"self",
",",
"port",
")",
":",
"assert",
"isinstance",
"(",
"port",
",",
"(",
"int",
",",
")",
")",
",",
"\"Argument 'port' must be of type '['int']'. Received type: '%s'\"",
"%",
"type",
"(",
"port",
")",
"subdom_funcs",
"=",
"se... | Function path: Tethering.unbind
Domain: Tethering
Method name: unbind
Parameters:
Required arguments:
'port' (type: integer) -> Port number to unbind.
No return value.
Description: Request browser port unbinding. | [
"Function",
"path",
":",
"Tethering",
".",
"unbind",
"Domain",
":",
"Tethering",
"Method",
"name",
":",
"unbind",
"Parameters",
":",
"Required",
"arguments",
":",
"port",
"(",
"type",
":",
"integer",
")",
"-",
">",
"Port",
"number",
"to",
"unbind",
".",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6410-L6427 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Browser_setWindowBounds | def Browser_setWindowBounds(self, windowId, bounds):
"""
Function path: Browser.setWindowBounds
Domain: Browser
Method name: setWindowBounds
Parameters:
Required arguments:
'windowId' (type: WindowID) -> Browser window id.
'bounds' (type: Bounds) -> New window bounds. The 'minimized', 'max... | python | def Browser_setWindowBounds(self, windowId, bounds):
"""
Function path: Browser.setWindowBounds
Domain: Browser
Method name: setWindowBounds
Parameters:
Required arguments:
'windowId' (type: WindowID) -> Browser window id.
'bounds' (type: Bounds) -> New window bounds. The 'minimized', 'max... | [
"def",
"Browser_setWindowBounds",
"(",
"self",
",",
"windowId",
",",
"bounds",
")",
":",
"subdom_funcs",
"=",
"self",
".",
"synchronous_command",
"(",
"'Browser.setWindowBounds'",
",",
"windowId",
"=",
"windowId",
",",
"bounds",
"=",
"bounds",
")",
"return",
"su... | Function path: Browser.setWindowBounds
Domain: Browser
Method name: setWindowBounds
Parameters:
Required arguments:
'windowId' (type: WindowID) -> Browser window id.
'bounds' (type: Bounds) -> New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left... | [
"Function",
"path",
":",
"Browser",
".",
"setWindowBounds",
"Domain",
":",
"Browser",
"Method",
"name",
":",
"setWindowBounds",
"Parameters",
":",
"Required",
"arguments",
":",
"windowId",
"(",
"type",
":",
"WindowID",
")",
"-",
">",
"Browser",
"window",
"id",... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6466-L6482 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Runtime_evaluate | def Runtime_evaluate(self, expression, **kwargs):
"""
Function path: Runtime.evaluate
Domain: Runtime
Method name: evaluate
Parameters:
Required arguments:
'expression' (type: string) -> Expression to evaluate.
Optional arguments:
'objectGroup' (type: string) -> Symbolic group name tha... | python | def Runtime_evaluate(self, expression, **kwargs):
"""
Function path: Runtime.evaluate
Domain: Runtime
Method name: evaluate
Parameters:
Required arguments:
'expression' (type: string) -> Expression to evaluate.
Optional arguments:
'objectGroup' (type: string) -> Symbolic group name tha... | [
"def",
"Runtime_evaluate",
"(",
"self",
",",
"expression",
",",
"*",
"*",
"kwargs",
")",
":",
"assert",
"isinstance",
"(",
"expression",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'expression' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"... | Function path: Runtime.evaluate
Domain: Runtime
Method name: evaluate
Parameters:
Required arguments:
'expression' (type: string) -> Expression to evaluate.
Optional arguments:
'objectGroup' (type: string) -> Symbolic group name that can be used to release multiple objects.
'includeCo... | [
"Function",
"path",
":",
"Runtime",
".",
"evaluate",
"Domain",
":",
"Runtime",
"Method",
"name",
":",
"evaluate",
"Parameters",
":",
"Required",
"arguments",
":",
"expression",
"(",
"type",
":",
"string",
")",
"-",
">",
"Expression",
"to",
"evaluate",
".",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6516-L6578 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Runtime_callFunctionOn | def Runtime_callFunctionOn(self, functionDeclaration, **kwargs):
"""
Function path: Runtime.callFunctionOn
Domain: Runtime
Method name: callFunctionOn
Parameters:
Required arguments:
'functionDeclaration' (type: string) -> Declaration of the function to call.
Optional arguments:
'objec... | python | def Runtime_callFunctionOn(self, functionDeclaration, **kwargs):
"""
Function path: Runtime.callFunctionOn
Domain: Runtime
Method name: callFunctionOn
Parameters:
Required arguments:
'functionDeclaration' (type: string) -> Declaration of the function to call.
Optional arguments:
'objec... | [
"def",
"Runtime_callFunctionOn",
"(",
"self",
",",
"functionDeclaration",
",",
"*",
"*",
"kwargs",
")",
":",
"assert",
"isinstance",
"(",
"functionDeclaration",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'functionDeclaration' must be of type '['str']'. Received ty... | Function path: Runtime.callFunctionOn
Domain: Runtime
Method name: callFunctionOn
Parameters:
Required arguments:
'functionDeclaration' (type: string) -> Declaration of the function to call.
Optional arguments:
'objectId' (type: RemoteObjectId) -> Identifier of the object to call function ... | [
"Function",
"path",
":",
"Runtime",
".",
"callFunctionOn",
"Domain",
":",
"Runtime",
"Method",
"name",
":",
"callFunctionOn",
"Parameters",
":",
"Required",
"arguments",
":",
"functionDeclaration",
"(",
"type",
":",
"string",
")",
"-",
">",
"Declaration",
"of",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6614-L6678 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Runtime_releaseObjectGroup | def Runtime_releaseObjectGroup(self, objectGroup):
"""
Function path: Runtime.releaseObjectGroup
Domain: Runtime
Method name: releaseObjectGroup
Parameters:
Required arguments:
'objectGroup' (type: string) -> Symbolic object group name.
No return value.
Description: Releases all remote... | python | def Runtime_releaseObjectGroup(self, objectGroup):
"""
Function path: Runtime.releaseObjectGroup
Domain: Runtime
Method name: releaseObjectGroup
Parameters:
Required arguments:
'objectGroup' (type: string) -> Symbolic object group name.
No return value.
Description: Releases all remote... | [
"def",
"Runtime_releaseObjectGroup",
"(",
"self",
",",
"objectGroup",
")",
":",
"assert",
"isinstance",
"(",
"objectGroup",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'objectGroup' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"objectGroup",... | Function path: Runtime.releaseObjectGroup
Domain: Runtime
Method name: releaseObjectGroup
Parameters:
Required arguments:
'objectGroup' (type: string) -> Symbolic object group name.
No return value.
Description: Releases all remote objects that belong to a given group. | [
"Function",
"path",
":",
"Runtime",
".",
"releaseObjectGroup",
"Domain",
":",
"Runtime",
"Method",
"name",
":",
"releaseObjectGroup",
"Parameters",
":",
"Required",
"arguments",
":",
"objectGroup",
"(",
"type",
":",
"string",
")",
"-",
">",
"Symbolic",
"object",... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6737-L6755 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Runtime_setCustomObjectFormatterEnabled | def Runtime_setCustomObjectFormatterEnabled(self, enabled):
"""
Function path: Runtime.setCustomObjectFormatterEnabled
Domain: Runtime
Method name: setCustomObjectFormatterEnabled
WARNING: This function is marked 'Experimental'!
Parameters:
Required arguments:
'enabled' (type: boolean) ->... | python | def Runtime_setCustomObjectFormatterEnabled(self, enabled):
"""
Function path: Runtime.setCustomObjectFormatterEnabled
Domain: Runtime
Method name: setCustomObjectFormatterEnabled
WARNING: This function is marked 'Experimental'!
Parameters:
Required arguments:
'enabled' (type: boolean) ->... | [
"def",
"Runtime_setCustomObjectFormatterEnabled",
"(",
"self",
",",
"enabled",
")",
":",
"assert",
"isinstance",
"(",
"enabled",
",",
"(",
"bool",
",",
")",
")",
",",
"\"Argument 'enabled' must be of type '['bool']'. Received type: '%s'\"",
"%",
"type",
"(",
"enabled",
... | Function path: Runtime.setCustomObjectFormatterEnabled
Domain: Runtime
Method name: setCustomObjectFormatterEnabled
WARNING: This function is marked 'Experimental'!
Parameters:
Required arguments:
'enabled' (type: boolean) -> No description
No return value. | [
"Function",
"path",
":",
"Runtime",
".",
"setCustomObjectFormatterEnabled",
"Domain",
":",
"Runtime",
"Method",
"name",
":",
"setCustomObjectFormatterEnabled",
"WARNING",
":",
"This",
"function",
"is",
"marked",
"Experimental",
"!",
"Parameters",
":",
"Required",
"arg... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6809-L6828 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Runtime_compileScript | def Runtime_compileScript(self, expression, sourceURL, persistScript, **kwargs
):
"""
Function path: Runtime.compileScript
Domain: Runtime
Method name: compileScript
Parameters:
Required arguments:
'expression' (type: string) -> Expression to compile.
'sourceURL' (type: string) -> Sou... | python | def Runtime_compileScript(self, expression, sourceURL, persistScript, **kwargs
):
"""
Function path: Runtime.compileScript
Domain: Runtime
Method name: compileScript
Parameters:
Required arguments:
'expression' (type: string) -> Expression to compile.
'sourceURL' (type: string) -> Sou... | [
"def",
"Runtime_compileScript",
"(",
"self",
",",
"expression",
",",
"sourceURL",
",",
"persistScript",
",",
"*",
"*",
"kwargs",
")",
":",
"assert",
"isinstance",
"(",
"expression",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'expression' must be of type '[... | Function path: Runtime.compileScript
Domain: Runtime
Method name: compileScript
Parameters:
Required arguments:
'expression' (type: string) -> Expression to compile.
'sourceURL' (type: string) -> Source url to be set for the script.
'persistScript' (type: boolean) -> Specifies whether the... | [
"Function",
"path",
":",
"Runtime",
".",
"compileScript",
"Domain",
":",
"Runtime",
"Method",
"name",
":",
"compileScript",
"Parameters",
":",
"Required",
"arguments",
":",
"expression",
"(",
"type",
":",
"string",
")",
"-",
">",
"Expression",
"to",
"compile",... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6830-L6866 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Runtime_runScript | def Runtime_runScript(self, scriptId, **kwargs):
"""
Function path: Runtime.runScript
Domain: Runtime
Method name: runScript
Parameters:
Required arguments:
'scriptId' (type: ScriptId) -> Id of the script to run.
Optional arguments:
'executionContextId' (type: ExecutionContextId) -> Sp... | python | def Runtime_runScript(self, scriptId, **kwargs):
"""
Function path: Runtime.runScript
Domain: Runtime
Method name: runScript
Parameters:
Required arguments:
'scriptId' (type: ScriptId) -> Id of the script to run.
Optional arguments:
'executionContextId' (type: ExecutionContextId) -> Sp... | [
"def",
"Runtime_runScript",
"(",
"self",
",",
"scriptId",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"'objectGroup'",
"in",
"kwargs",
":",
"assert",
"isinstance",
"(",
"kwargs",
"[",
"'objectGroup'",
"]",
",",
"(",
"str",
",",
")",
")",
",",
"\"Optional ar... | Function path: Runtime.runScript
Domain: Runtime
Method name: runScript
Parameters:
Required arguments:
'scriptId' (type: ScriptId) -> Id of the script to run.
Optional arguments:
'executionContextId' (type: ExecutionContextId) -> Specifies in which execution context to perform script run.... | [
"Function",
"path",
":",
"Runtime",
".",
"runScript",
"Domain",
":",
"Runtime",
"Method",
"name",
":",
"runScript",
"Parameters",
":",
"Required",
"arguments",
":",
"scriptId",
"(",
"type",
":",
"ScriptId",
")",
"-",
">",
"Id",
"of",
"the",
"script",
"to",... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6868-L6923 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Debugger_setBreakpointsActive | def Debugger_setBreakpointsActive(self, active):
"""
Function path: Debugger.setBreakpointsActive
Domain: Debugger
Method name: setBreakpointsActive
Parameters:
Required arguments:
'active' (type: boolean) -> New value for breakpoints active state.
No return value.
Description: Activat... | python | def Debugger_setBreakpointsActive(self, active):
"""
Function path: Debugger.setBreakpointsActive
Domain: Debugger
Method name: setBreakpointsActive
Parameters:
Required arguments:
'active' (type: boolean) -> New value for breakpoints active state.
No return value.
Description: Activat... | [
"def",
"Debugger_setBreakpointsActive",
"(",
"self",
",",
"active",
")",
":",
"assert",
"isinstance",
"(",
"active",
",",
"(",
"bool",
",",
")",
")",
",",
"\"Argument 'active' must be of type '['bool']'. Received type: '%s'\"",
"%",
"type",
"(",
"active",
")",
"subd... | Function path: Debugger.setBreakpointsActive
Domain: Debugger
Method name: setBreakpointsActive
Parameters:
Required arguments:
'active' (type: boolean) -> New value for breakpoints active state.
No return value.
Description: Activates / deactivates all breakpoints on the page. | [
"Function",
"path",
":",
"Debugger",
".",
"setBreakpointsActive",
"Domain",
":",
"Debugger",
"Method",
"name",
":",
"setBreakpointsActive",
"Parameters",
":",
"Required",
"arguments",
":",
"active",
"(",
"type",
":",
"boolean",
")",
"-",
">",
"New",
"value",
"... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6970-L6988 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Debugger_setSkipAllPauses | def Debugger_setSkipAllPauses(self, skip):
"""
Function path: Debugger.setSkipAllPauses
Domain: Debugger
Method name: setSkipAllPauses
Parameters:
Required arguments:
'skip' (type: boolean) -> New value for skip pauses state.
No return value.
Description: Makes page not interrupt on an... | python | def Debugger_setSkipAllPauses(self, skip):
"""
Function path: Debugger.setSkipAllPauses
Domain: Debugger
Method name: setSkipAllPauses
Parameters:
Required arguments:
'skip' (type: boolean) -> New value for skip pauses state.
No return value.
Description: Makes page not interrupt on an... | [
"def",
"Debugger_setSkipAllPauses",
"(",
"self",
",",
"skip",
")",
":",
"assert",
"isinstance",
"(",
"skip",
",",
"(",
"bool",
",",
")",
")",
",",
"\"Argument 'skip' must be of type '['bool']'. Received type: '%s'\"",
"%",
"type",
"(",
"skip",
")",
"subdom_funcs",
... | Function path: Debugger.setSkipAllPauses
Domain: Debugger
Method name: setSkipAllPauses
Parameters:
Required arguments:
'skip' (type: boolean) -> New value for skip pauses state.
No return value.
Description: Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc)... | [
"Function",
"path",
":",
"Debugger",
".",
"setSkipAllPauses",
"Domain",
":",
"Debugger",
"Method",
"name",
":",
"setSkipAllPauses",
"Parameters",
":",
"Required",
"arguments",
":",
"skip",
"(",
"type",
":",
"boolean",
")",
"-",
">",
"New",
"value",
"for",
"s... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6990-L7008 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Debugger_setScriptSource | def Debugger_setScriptSource(self, scriptId, scriptSource, **kwargs):
"""
Function path: Debugger.setScriptSource
Domain: Debugger
Method name: setScriptSource
Parameters:
Required arguments:
'scriptId' (type: Runtime.ScriptId) -> Id of the script to edit.
'scriptSource' (type: string) -> ... | python | def Debugger_setScriptSource(self, scriptId, scriptSource, **kwargs):
"""
Function path: Debugger.setScriptSource
Domain: Debugger
Method name: setScriptSource
Parameters:
Required arguments:
'scriptId' (type: Runtime.ScriptId) -> Id of the script to edit.
'scriptSource' (type: string) -> ... | [
"def",
"Debugger_setScriptSource",
"(",
"self",
",",
"scriptId",
",",
"scriptSource",
",",
"*",
"*",
"kwargs",
")",
":",
"assert",
"isinstance",
"(",
"scriptSource",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'scriptSource' must be of type '['str']'. Received ... | Function path: Debugger.setScriptSource
Domain: Debugger
Method name: setScriptSource
Parameters:
Required arguments:
'scriptId' (type: Runtime.ScriptId) -> Id of the script to edit.
'scriptSource' (type: string) -> New content of the script.
Optional arguments:
'dryRun' (type: boolea... | [
"Function",
"path",
":",
"Debugger",
".",
"setScriptSource",
"Domain",
":",
"Debugger",
"Method",
"name",
":",
"setScriptSource",
"Parameters",
":",
"Required",
"arguments",
":",
"scriptId",
"(",
"type",
":",
"Runtime",
".",
"ScriptId",
")",
"-",
">",
"Id",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L7280-L7313 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Debugger_setPauseOnExceptions | def Debugger_setPauseOnExceptions(self, state):
"""
Function path: Debugger.setPauseOnExceptions
Domain: Debugger
Method name: setPauseOnExceptions
Parameters:
Required arguments:
'state' (type: string) -> Pause on exceptions mode.
No return value.
Description: Defines pause on excepti... | python | def Debugger_setPauseOnExceptions(self, state):
"""
Function path: Debugger.setPauseOnExceptions
Domain: Debugger
Method name: setPauseOnExceptions
Parameters:
Required arguments:
'state' (type: string) -> Pause on exceptions mode.
No return value.
Description: Defines pause on excepti... | [
"def",
"Debugger_setPauseOnExceptions",
"(",
"self",
",",
"state",
")",
":",
"assert",
"isinstance",
"(",
"state",
",",
"(",
"str",
",",
")",
")",
",",
"\"Argument 'state' must be of type '['str']'. Received type: '%s'\"",
"%",
"type",
"(",
"state",
")",
"subdom_fun... | Function path: Debugger.setPauseOnExceptions
Domain: Debugger
Method name: setPauseOnExceptions
Parameters:
Required arguments:
'state' (type: string) -> Pause on exceptions mode.
No return value.
Description: Defines pause on exceptions state. Can be set to stop on all exceptions, uncaugh... | [
"Function",
"path",
":",
"Debugger",
".",
"setPauseOnExceptions",
"Domain",
":",
"Debugger",
"Method",
"name",
":",
"setPauseOnExceptions",
"Parameters",
":",
"Required",
"arguments",
":",
"state",
"(",
"type",
":",
"string",
")",
"-",
">",
"Pause",
"on",
"exc... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L7352-L7370 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Debugger_setVariableValue | def Debugger_setVariableValue(self, scopeNumber, variableName, newValue,
callFrameId):
"""
Function path: Debugger.setVariableValue
Domain: Debugger
Method name: setVariableValue
Parameters:
Required arguments:
'scopeNumber' (type: integer) -> 0-based number of scope as was listed in scope... | python | def Debugger_setVariableValue(self, scopeNumber, variableName, newValue,
callFrameId):
"""
Function path: Debugger.setVariableValue
Domain: Debugger
Method name: setVariableValue
Parameters:
Required arguments:
'scopeNumber' (type: integer) -> 0-based number of scope as was listed in scope... | [
"def",
"Debugger_setVariableValue",
"(",
"self",
",",
"scopeNumber",
",",
"variableName",
",",
"newValue",
",",
"callFrameId",
")",
":",
"assert",
"isinstance",
"(",
"scopeNumber",
",",
"(",
"int",
",",
")",
")",
",",
"\"Argument 'scopeNumber' must be of type '['int... | Function path: Debugger.setVariableValue
Domain: Debugger
Method name: setVariableValue
Parameters:
Required arguments:
'scopeNumber' (type: integer) -> 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulat... | [
"Function",
"path",
":",
"Debugger",
".",
"setVariableValue",
"Domain",
":",
"Debugger",
"Method",
"name",
":",
"setVariableValue",
"Parameters",
":",
"Required",
"arguments",
":",
"scopeNumber",
"(",
"type",
":",
"integer",
")",
"-",
">",
"0",
"-",
"based",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L7431-L7457 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Debugger_setAsyncCallStackDepth | def Debugger_setAsyncCallStackDepth(self, maxDepth):
"""
Function path: Debugger.setAsyncCallStackDepth
Domain: Debugger
Method name: setAsyncCallStackDepth
Parameters:
Required arguments:
'maxDepth' (type: integer) -> Maximum depth of async call stacks. Setting to <code>0</code> will effective... | python | def Debugger_setAsyncCallStackDepth(self, maxDepth):
"""
Function path: Debugger.setAsyncCallStackDepth
Domain: Debugger
Method name: setAsyncCallStackDepth
Parameters:
Required arguments:
'maxDepth' (type: integer) -> Maximum depth of async call stacks. Setting to <code>0</code> will effective... | [
"def",
"Debugger_setAsyncCallStackDepth",
"(",
"self",
",",
"maxDepth",
")",
":",
"assert",
"isinstance",
"(",
"maxDepth",
",",
"(",
"int",
",",
")",
")",
",",
"\"Argument 'maxDepth' must be of type '['int']'. Received type: '%s'\"",
"%",
"type",
"(",
"maxDepth",
")",... | Function path: Debugger.setAsyncCallStackDepth
Domain: Debugger
Method name: setAsyncCallStackDepth
Parameters:
Required arguments:
'maxDepth' (type: integer) -> Maximum depth of async call stacks. Setting to <code>0</code> will effectively disable collecting async call stacks (default).
No retu... | [
"Function",
"path",
":",
"Debugger",
".",
"setAsyncCallStackDepth",
"Domain",
":",
"Debugger",
"Method",
"name",
":",
"setAsyncCallStackDepth",
"Parameters",
":",
"Required",
"arguments",
":",
"maxDepth",
"(",
"type",
":",
"integer",
")",
"-",
">",
"Maximum",
"d... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L7459-L7477 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Debugger_setBlackboxPatterns | def Debugger_setBlackboxPatterns(self, patterns):
"""
Function path: Debugger.setBlackboxPatterns
Domain: Debugger
Method name: setBlackboxPatterns
WARNING: This function is marked 'Experimental'!
Parameters:
Required arguments:
'patterns' (type: array) -> Array of regexps that will be us... | python | def Debugger_setBlackboxPatterns(self, patterns):
"""
Function path: Debugger.setBlackboxPatterns
Domain: Debugger
Method name: setBlackboxPatterns
WARNING: This function is marked 'Experimental'!
Parameters:
Required arguments:
'patterns' (type: array) -> Array of regexps that will be us... | [
"def",
"Debugger_setBlackboxPatterns",
"(",
"self",
",",
"patterns",
")",
":",
"assert",
"isinstance",
"(",
"patterns",
",",
"(",
"list",
",",
"tuple",
")",
")",
",",
"\"Argument 'patterns' must be of type '['list', 'tuple']'. Received type: '%s'\"",
"%",
"type",
"(",
... | Function path: Debugger.setBlackboxPatterns
Domain: Debugger
Method name: setBlackboxPatterns
WARNING: This function is marked 'Experimental'!
Parameters:
Required arguments:
'patterns' (type: array) -> Array of regexps that will be used to check script url for blackbox state.
No return va... | [
"Function",
"path",
":",
"Debugger",
".",
"setBlackboxPatterns",
"Domain",
":",
"Debugger",
"Method",
"name",
":",
"setBlackboxPatterns",
"WARNING",
":",
"This",
"function",
"is",
"marked",
"Experimental",
"!",
"Parameters",
":",
"Required",
"arguments",
":",
"pat... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L7479-L7499 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Debugger_setBlackboxedRanges | def Debugger_setBlackboxedRanges(self, scriptId, positions):
"""
Function path: Debugger.setBlackboxedRanges
Domain: Debugger
Method name: setBlackboxedRanges
WARNING: This function is marked 'Experimental'!
Parameters:
Required arguments:
'scriptId' (type: Runtime.ScriptId) -> Id of the ... | python | def Debugger_setBlackboxedRanges(self, scriptId, positions):
"""
Function path: Debugger.setBlackboxedRanges
Domain: Debugger
Method name: setBlackboxedRanges
WARNING: This function is marked 'Experimental'!
Parameters:
Required arguments:
'scriptId' (type: Runtime.ScriptId) -> Id of the ... | [
"def",
"Debugger_setBlackboxedRanges",
"(",
"self",
",",
"scriptId",
",",
"positions",
")",
":",
"assert",
"isinstance",
"(",
"positions",
",",
"(",
"list",
",",
"tuple",
")",
")",
",",
"\"Argument 'positions' must be of type '['list', 'tuple']'. Received type: '%s'\"",
... | Function path: Debugger.setBlackboxedRanges
Domain: Debugger
Method name: setBlackboxedRanges
WARNING: This function is marked 'Experimental'!
Parameters:
Required arguments:
'scriptId' (type: Runtime.ScriptId) -> Id of the script.
'positions' (type: array) -> No description
No return... | [
"Function",
"path",
":",
"Debugger",
".",
"setBlackboxedRanges",
"Domain",
":",
"Debugger",
"Method",
"name",
":",
"setBlackboxedRanges",
"WARNING",
":",
"This",
"function",
"is",
"marked",
"Experimental",
"!",
"Parameters",
":",
"Required",
"arguments",
":",
"scr... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L7501-L7522 |
fake-name/ChromeController | ChromeController/Generator/Generated.py | ChromeRemoteDebugInterface.Profiler_setSamplingInterval | def Profiler_setSamplingInterval(self, interval):
"""
Function path: Profiler.setSamplingInterval
Domain: Profiler
Method name: setSamplingInterval
Parameters:
Required arguments:
'interval' (type: integer) -> New sampling interval in microseconds.
No return value.
Description: Changes... | python | def Profiler_setSamplingInterval(self, interval):
"""
Function path: Profiler.setSamplingInterval
Domain: Profiler
Method name: setSamplingInterval
Parameters:
Required arguments:
'interval' (type: integer) -> New sampling interval in microseconds.
No return value.
Description: Changes... | [
"def",
"Profiler_setSamplingInterval",
"(",
"self",
",",
"interval",
")",
":",
"assert",
"isinstance",
"(",
"interval",
",",
"(",
"int",
",",
")",
")",
",",
"\"Argument 'interval' must be of type '['int']'. Received type: '%s'\"",
"%",
"type",
"(",
"interval",
")",
... | Function path: Profiler.setSamplingInterval
Domain: Profiler
Method name: setSamplingInterval
Parameters:
Required arguments:
'interval' (type: integer) -> New sampling interval in microseconds.
No return value.
Description: Changes CPU profiler sampling interval. Must be called before CPU... | [
"Function",
"path",
":",
"Profiler",
".",
"setSamplingInterval",
"Domain",
":",
"Profiler",
"Method",
"name",
":",
"setSamplingInterval",
"Parameters",
":",
"Required",
"arguments",
":",
"interval",
"(",
"type",
":",
"integer",
")",
"-",
">",
"New",
"sampling",
... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L7587-L7605 |
fake-name/ChromeController | ChromeController/manager.py | ChromeRemoteDebugInterface.update_headers | def update_headers(self, header_args):
'''
Given a set of headers, update both the user-agent
and additional headers for the remote browser.
header_args must be a dict. Keys are the names of
the corresponding HTTP header.
return value is a 2-tuple of the results of the user-agent
update, as well as the ... | python | def update_headers(self, header_args):
'''
Given a set of headers, update both the user-agent
and additional headers for the remote browser.
header_args must be a dict. Keys are the names of
the corresponding HTTP header.
return value is a 2-tuple of the results of the user-agent
update, as well as the ... | [
"def",
"update_headers",
"(",
"self",
",",
"header_args",
")",
":",
"assert",
"isinstance",
"(",
"header_args",
",",
"dict",
")",
",",
"\"header_args must be a dict, passed type was %s\"",
"%",
"(",
"type",
"(",
"header_args",
")",
",",
")",
"ua",
"=",
"header_a... | Given a set of headers, update both the user-agent
and additional headers for the remote browser.
header_args must be a dict. Keys are the names of
the corresponding HTTP header.
return value is a 2-tuple of the results of the user-agent
update, as well as the extra headers update.
If no 'User-Agent' key ... | [
"Given",
"a",
"set",
"of",
"headers",
"update",
"both",
"the",
"user",
"-",
"agent",
"and",
"additional",
"headers",
"for",
"the",
"remote",
"browser",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L96-L121 |
fake-name/ChromeController | ChromeController/manager.py | ChromeRemoteDebugInterface.get_cookies | def get_cookies(self):
'''
Retreive the cookies from the remote browser.
Return value is a list of http.cookiejar.Cookie() instances.
These can be directly used with the various http.cookiejar.XXXCookieJar
cookie management classes.
'''
ret = self.Network_getAllCookies()
assert 'result' in ret, "No re... | python | def get_cookies(self):
'''
Retreive the cookies from the remote browser.
Return value is a list of http.cookiejar.Cookie() instances.
These can be directly used with the various http.cookiejar.XXXCookieJar
cookie management classes.
'''
ret = self.Network_getAllCookies()
assert 'result' in ret, "No re... | [
"def",
"get_cookies",
"(",
"self",
")",
":",
"ret",
"=",
"self",
".",
"Network_getAllCookies",
"(",
")",
"assert",
"'result'",
"in",
"ret",
",",
"\"No return value in function response!\"",
"assert",
"'cookies'",
"in",
"ret",
"[",
"'result'",
"]",
",",
"\"No 'co... | Retreive the cookies from the remote browser.
Return value is a list of http.cookiejar.Cookie() instances.
These can be directly used with the various http.cookiejar.XXXCookieJar
cookie management classes. | [
"Retreive",
"the",
"cookies",
"from",
"the",
"remote",
"browser",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L165-L236 |
fake-name/ChromeController | ChromeController/manager.py | ChromeRemoteDebugInterface.set_cookie | def set_cookie(self, cookie):
'''
Add a cookie to the remote chromium instance.
Passed value `cookie` must be an instance of `http.cookiejar.Cookie()`.
'''
# Function path: Network.setCookie
# Domain: Network
# Method name: setCookie
# WARNING: This function is marked 'Experimental'!
# Parameters:
... | python | def set_cookie(self, cookie):
'''
Add a cookie to the remote chromium instance.
Passed value `cookie` must be an instance of `http.cookiejar.Cookie()`.
'''
# Function path: Network.setCookie
# Domain: Network
# Method name: setCookie
# WARNING: This function is marked 'Experimental'!
# Parameters:
... | [
"def",
"set_cookie",
"(",
"self",
",",
"cookie",
")",
":",
"# Function path: Network.setCookie",
"# Domain: Network",
"# Method name: setCookie",
"# WARNING: This function is marked 'Experimental'!",
"# Parameters:",
"# Required arguments:",
"# 'url' (type: string... | Add a cookie to the remote chromium instance.
Passed value `cookie` must be an instance of `http.cookiejar.Cookie()`. | [
"Add",
"a",
"cookie",
"to",
"the",
"remote",
"chromium",
"instance",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L238-L310 |
fake-name/ChromeController | ChromeController/manager.py | ChromeRemoteDebugInterface.get_current_url | def get_current_url(self):
'''
Probe the remote session for the current window URL.
This is primarily used to do things like unwrap redirects,
or circumvent outbound url wrappers.
'''
res = self.Page_getNavigationHistory()
assert 'result' in res
assert 'currentIndex' in res['result']
assert 'entries... | python | def get_current_url(self):
'''
Probe the remote session for the current window URL.
This is primarily used to do things like unwrap redirects,
or circumvent outbound url wrappers.
'''
res = self.Page_getNavigationHistory()
assert 'result' in res
assert 'currentIndex' in res['result']
assert 'entries... | [
"def",
"get_current_url",
"(",
"self",
")",
":",
"res",
"=",
"self",
".",
"Page_getNavigationHistory",
"(",
")",
"assert",
"'result'",
"in",
"res",
"assert",
"'currentIndex'",
"in",
"res",
"[",
"'result'",
"]",
"assert",
"'entries'",
"in",
"res",
"[",
"'resu... | Probe the remote session for the current window URL.
This is primarily used to do things like unwrap redirects,
or circumvent outbound url wrappers. | [
"Probe",
"the",
"remote",
"session",
"for",
"the",
"current",
"window",
"URL",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L337-L350 |
fake-name/ChromeController | ChromeController/manager.py | ChromeRemoteDebugInterface.get_page_url_title | def get_page_url_title(self):
'''
Get the title and current url from the remote session.
Return is a 2-tuple: (page_title, page_url).
'''
cr_tab_id = self.transport._get_cr_tab_meta_for_key(self.tab_id)['id']
targets = self.Target_getTargets()
assert 'result' in targets
assert 'targetInfos' in targe... | python | def get_page_url_title(self):
'''
Get the title and current url from the remote session.
Return is a 2-tuple: (page_title, page_url).
'''
cr_tab_id = self.transport._get_cr_tab_meta_for_key(self.tab_id)['id']
targets = self.Target_getTargets()
assert 'result' in targets
assert 'targetInfos' in targe... | [
"def",
"get_page_url_title",
"(",
"self",
")",
":",
"cr_tab_id",
"=",
"self",
".",
"transport",
".",
"_get_cr_tab_meta_for_key",
"(",
"self",
".",
"tab_id",
")",
"[",
"'id'",
"]",
"targets",
"=",
"self",
".",
"Target_getTargets",
"(",
")",
"assert",
"'result... | Get the title and current url from the remote session.
Return is a 2-tuple: (page_title, page_url). | [
"Get",
"the",
"title",
"and",
"current",
"url",
"from",
"the",
"remote",
"session",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L352-L378 |
fake-name/ChromeController | ChromeController/manager.py | ChromeRemoteDebugInterface.execute_javascript | def execute_javascript(self, *args, **kwargs):
'''
Execute a javascript string in the context of the browser tab.
'''
ret = self.__exec_js(*args, **kwargs)
return ret | python | def execute_javascript(self, *args, **kwargs):
'''
Execute a javascript string in the context of the browser tab.
'''
ret = self.__exec_js(*args, **kwargs)
return ret | [
"def",
"execute_javascript",
"(",
"self",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"ret",
"=",
"self",
".",
"__exec_js",
"(",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
"return",
"ret"
] | Execute a javascript string in the context of the browser tab. | [
"Execute",
"a",
"javascript",
"string",
"in",
"the",
"context",
"of",
"the",
"browser",
"tab",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L400-L406 |
fake-name/ChromeController | ChromeController/manager.py | ChromeRemoteDebugInterface.find_element | def find_element(self, search):
'''
DOM_performSearch(self, query, includeUserAgentShadowDOM)
Python Function: DOM_performSearch
Domain: DOM
Method name: performSearch
WARNING: This function is marked 'Experimental'!
Parameters:
'query' (type: string) -... | python | def find_element(self, search):
'''
DOM_performSearch(self, query, includeUserAgentShadowDOM)
Python Function: DOM_performSearch
Domain: DOM
Method name: performSearch
WARNING: This function is marked 'Experimental'!
Parameters:
'query' (type: string) -... | [
"def",
"find_element",
"(",
"self",
",",
"search",
")",
":",
"res",
"=",
"self",
".",
"DOM_performSearch",
"(",
"search",
",",
"includeUserAgentShadowDOM",
"=",
"False",
")",
"assert",
"'result'",
"in",
"res",
"assert",
"'searchId'",
"in",
"res",
"[",
"'resu... | DOM_performSearch(self, query, includeUserAgentShadowDOM)
Python Function: DOM_performSearch
Domain: DOM
Method name: performSearch
WARNING: This function is marked 'Experimental'!
Parameters:
'query' (type: string) -> Plain text or query selector or XPath s... | [
"DOM_performSearch",
"(",
"self",
"query",
"includeUserAgentShadowDOM",
")",
"Python",
"Function",
":",
"DOM_performSearch",
"Domain",
":",
"DOM",
"Method",
"name",
":",
"performSearch"
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L408-L467 |
fake-name/ChromeController | ChromeController/manager.py | ChromeRemoteDebugInterface.get_unpacked_response_body | def get_unpacked_response_body(self, requestId, mimetype="application/unknown"):
'''
Return a unpacked, decoded resposne body from Network_getResponseBody()
'''
content = self.Network_getResponseBody(requestId)
assert 'result' in content
result = content['result']
assert 'base64Encoded' in result
asse... | python | def get_unpacked_response_body(self, requestId, mimetype="application/unknown"):
'''
Return a unpacked, decoded resposne body from Network_getResponseBody()
'''
content = self.Network_getResponseBody(requestId)
assert 'result' in content
result = content['result']
assert 'base64Encoded' in result
asse... | [
"def",
"get_unpacked_response_body",
"(",
"self",
",",
"requestId",
",",
"mimetype",
"=",
"\"application/unknown\"",
")",
":",
"content",
"=",
"self",
".",
"Network_getResponseBody",
"(",
"requestId",
")",
"assert",
"'result'",
"in",
"content",
"result",
"=",
"con... | Return a unpacked, decoded resposne body from Network_getResponseBody() | [
"Return",
"a",
"unpacked",
"decoded",
"resposne",
"body",
"from",
"Network_getResponseBody",
"()"
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L527-L546 |
fake-name/ChromeController | ChromeController/manager.py | ChromeRemoteDebugInterface.handle_page_location_changed | def handle_page_location_changed(self, timeout=None):
'''
If the chrome tab has internally redirected (generally because jerberscript), this
will walk the page navigation responses and attempt to fetch the response body for
the tab's latest location.
'''
# In general, this is often called after other mecha... | python | def handle_page_location_changed(self, timeout=None):
'''
If the chrome tab has internally redirected (generally because jerberscript), this
will walk the page navigation responses and attempt to fetch the response body for
the tab's latest location.
'''
# In general, this is often called after other mecha... | [
"def",
"handle_page_location_changed",
"(",
"self",
",",
"timeout",
"=",
"None",
")",
":",
"# In general, this is often called after other mechanisms have confirmed",
"# that the tab has already navigated. As such, we want to not wait a while",
"# to discover something went wrong, so use a t... | If the chrome tab has internally redirected (generally because jerberscript), this
will walk the page navigation responses and attempt to fetch the response body for
the tab's latest location. | [
"If",
"the",
"chrome",
"tab",
"has",
"internally",
"redirected",
"(",
"generally",
"because",
"jerberscript",
")",
"this",
"will",
"walk",
"the",
"page",
"navigation",
"responses",
"and",
"attempt",
"to",
"fetch",
"the",
"response",
"body",
"for",
"the",
"tab"... | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L549-L587 |
fake-name/ChromeController | ChromeController/manager.py | ChromeRemoteDebugInterface.blocking_navigate_and_get_source | def blocking_navigate_and_get_source(self, url, timeout=DEFAULT_TIMEOUT_SECS):
'''
Do a blocking navigate to url `url`, and then extract the
response body and return that.
This effectively returns the *unrendered* page content that's sent over the wire. As such,
if the page does any modification of the conta... | python | def blocking_navigate_and_get_source(self, url, timeout=DEFAULT_TIMEOUT_SECS):
'''
Do a blocking navigate to url `url`, and then extract the
response body and return that.
This effectively returns the *unrendered* page content that's sent over the wire. As such,
if the page does any modification of the conta... | [
"def",
"blocking_navigate_and_get_source",
"(",
"self",
",",
"url",
",",
"timeout",
"=",
"DEFAULT_TIMEOUT_SECS",
")",
":",
"resp",
"=",
"self",
".",
"blocking_navigate",
"(",
"url",
",",
"timeout",
")",
"assert",
"'requestId'",
"in",
"resp",
"assert",
"'response... | Do a blocking navigate to url `url`, and then extract the
response body and return that.
This effectively returns the *unrendered* page content that's sent over the wire. As such,
if the page does any modification of the contained markup during rendering (via javascript), this
function will not reflect the cha... | [
"Do",
"a",
"blocking",
"navigate",
"to",
"url",
"url",
"and",
"then",
"extract",
"the",
"response",
"body",
"and",
"return",
"that",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L589-L633 |
fake-name/ChromeController | ChromeController/manager.py | ChromeRemoteDebugInterface.get_rendered_page_source | def get_rendered_page_source(self, dom_idle_requirement_secs=3, max_wait_timeout=30):
'''
Get the HTML markup for the current page.
This is done by looking up the root DOM node, and then requesting the outer HTML
for that node ID.
This calls return will reflect any modifications made by javascript to the
... | python | def get_rendered_page_source(self, dom_idle_requirement_secs=3, max_wait_timeout=30):
'''
Get the HTML markup for the current page.
This is done by looking up the root DOM node, and then requesting the outer HTML
for that node ID.
This calls return will reflect any modifications made by javascript to the
... | [
"def",
"get_rendered_page_source",
"(",
"self",
",",
"dom_idle_requirement_secs",
"=",
"3",
",",
"max_wait_timeout",
"=",
"30",
")",
":",
"# There are a bunch of events which generally indicate a page is still doing *things*.",
"# I have some concern about how this will handle things l... | Get the HTML markup for the current page.
This is done by looking up the root DOM node, and then requesting the outer HTML
for that node ID.
This calls return will reflect any modifications made by javascript to the
page. For unmodified content, use `blocking_navigate_and_get_source()`
dom_idle_requirement... | [
"Get",
"the",
"HTML",
"markup",
"for",
"the",
"current",
"page",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L636-L698 |
fake-name/ChromeController | ChromeController/manager.py | ChromeRemoteDebugInterface.take_screeshot | def take_screeshot(self):
'''
Take a screenshot of the virtual viewport content.
Return value is a png image as a bytestring.
'''
resp = self.Page_captureScreenshot()
assert 'result' in resp
assert 'data' in resp['result']
imgdat = base64.b64decode(resp['result']['data'])
return imgdat | python | def take_screeshot(self):
'''
Take a screenshot of the virtual viewport content.
Return value is a png image as a bytestring.
'''
resp = self.Page_captureScreenshot()
assert 'result' in resp
assert 'data' in resp['result']
imgdat = base64.b64decode(resp['result']['data'])
return imgdat | [
"def",
"take_screeshot",
"(",
"self",
")",
":",
"resp",
"=",
"self",
".",
"Page_captureScreenshot",
"(",
")",
"assert",
"'result'",
"in",
"resp",
"assert",
"'data'",
"in",
"resp",
"[",
"'result'",
"]",
"imgdat",
"=",
"base64",
".",
"b64decode",
"(",
"resp"... | Take a screenshot of the virtual viewport content.
Return value is a png image as a bytestring. | [
"Take",
"a",
"screenshot",
"of",
"the",
"virtual",
"viewport",
"content",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L701-L711 |
fake-name/ChromeController | ChromeController/manager.py | ChromeRemoteDebugInterface.blocking_navigate | def blocking_navigate(self, url, timeout=DEFAULT_TIMEOUT_SECS):
'''
Do a blocking navigate to url `url`.
This function triggers a navigation, and then waits for the browser
to claim the page has finished loading.
Roughly, this corresponds to the javascript `DOMContentLoaded` event,
meaning the dom for the... | python | def blocking_navigate(self, url, timeout=DEFAULT_TIMEOUT_SECS):
'''
Do a blocking navigate to url `url`.
This function triggers a navigation, and then waits for the browser
to claim the page has finished loading.
Roughly, this corresponds to the javascript `DOMContentLoaded` event,
meaning the dom for the... | [
"def",
"blocking_navigate",
"(",
"self",
",",
"url",
",",
"timeout",
"=",
"DEFAULT_TIMEOUT_SECS",
")",
":",
"self",
".",
"transport",
".",
"flush",
"(",
"tab_key",
"=",
"self",
".",
"tab_id",
")",
"ret",
"=",
"self",
".",
"Page_navigate",
"(",
"url",
"="... | Do a blocking navigate to url `url`.
This function triggers a navigation, and then waits for the browser
to claim the page has finished loading.
Roughly, this corresponds to the javascript `DOMContentLoaded` event,
meaning the dom for the page is ready.
Internals:
A navigation command results in a sequ... | [
"Do",
"a",
"blocking",
"navigate",
"to",
"url",
"url",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L714-L780 |
fake-name/ChromeController | ChromeController/tab_pool.py | TabPooledChromium.tab | def tab(self, netloc=None, url=None, extra_id=None, use_tid=False):
'''
Get a chromium tab from the pool, optionally one that has an association with a specific netloc/URL.
If no url or netloc is specified, the per-thread identifier will be used.
If `extra_id` is specified, it's stringified value will be mixed... | python | def tab(self, netloc=None, url=None, extra_id=None, use_tid=False):
'''
Get a chromium tab from the pool, optionally one that has an association with a specific netloc/URL.
If no url or netloc is specified, the per-thread identifier will be used.
If `extra_id` is specified, it's stringified value will be mixed... | [
"def",
"tab",
"(",
"self",
",",
"netloc",
"=",
"None",
",",
"url",
"=",
"None",
",",
"extra_id",
"=",
"None",
",",
"use_tid",
"=",
"False",
")",
":",
"assert",
"self",
".",
"alive",
",",
"\"Chrome has been shut down! Cannot continue!\"",
"if",
"not",
"netl... | Get a chromium tab from the pool, optionally one that has an association with a specific netloc/URL.
If no url or netloc is specified, the per-thread identifier will be used.
If `extra_id` is specified, it's stringified value will be mixed into the pool key
If `use_tid` is true, the per-thread identifier will be... | [
"Get",
"a",
"chromium",
"tab",
"from",
"the",
"pool",
"optionally",
"one",
"that",
"has",
"an",
"association",
"with",
"a",
"specific",
"netloc",
"/",
"URL",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/tab_pool.py#L88-L132 |
fake-name/ChromeController | ChromeController/exit_handler.py | on_parent_exit | def on_parent_exit(signame):
"""
Return a function to be run in a child process which will trigger SIGNAME
to be sent when the parent process dies
"""
signum = getattr(signal, signame)
def set_parent_exit_signal():
# http://linux.die.net/man/2/prctl
result = cdll['libc.so.6'].prc... | python | def on_parent_exit(signame):
"""
Return a function to be run in a child process which will trigger SIGNAME
to be sent when the parent process dies
"""
signum = getattr(signal, signame)
def set_parent_exit_signal():
# http://linux.die.net/man/2/prctl
result = cdll['libc.so.6'].prc... | [
"def",
"on_parent_exit",
"(",
"signame",
")",
":",
"signum",
"=",
"getattr",
"(",
"signal",
",",
"signame",
")",
"def",
"set_parent_exit_signal",
"(",
")",
":",
"# http://linux.die.net/man/2/prctl",
"result",
"=",
"cdll",
"[",
"'libc.so.6'",
"]",
".",
"prctl",
... | Return a function to be run in a child process which will trigger SIGNAME
to be sent when the parent process dies | [
"Return",
"a",
"function",
"to",
"be",
"run",
"in",
"a",
"child",
"process",
"which",
"will",
"trigger",
"SIGNAME",
"to",
"be",
"sent",
"when",
"the",
"parent",
"process",
"dies"
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/exit_handler.py#L22-L33 |
fake-name/ChromeController | ChromeController/chrome_context.py | ChromeContext | def ChromeContext(*args, **kwargs):
'''
Context manager for conveniently handling the lifetime of the underlying chromium instance.
In general, this should be the preferred way to use an instance of `ChromeRemoteDebugInterface`.
All parameters are forwarded through to the underlying ChromeRemoteDebugInterface() c... | python | def ChromeContext(*args, **kwargs):
'''
Context manager for conveniently handling the lifetime of the underlying chromium instance.
In general, this should be the preferred way to use an instance of `ChromeRemoteDebugInterface`.
All parameters are forwarded through to the underlying ChromeRemoteDebugInterface() c... | [
"def",
"ChromeContext",
"(",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"log",
"=",
"logging",
".",
"getLogger",
"(",
"\"Main.ChromeController.ChromeContext\"",
")",
"chrome_created",
"=",
"False",
"try",
":",
"chrome_instance",
"=",
"ChromeRemoteDebugInterfa... | Context manager for conveniently handling the lifetime of the underlying chromium instance.
In general, this should be the preferred way to use an instance of `ChromeRemoteDebugInterface`.
All parameters are forwarded through to the underlying ChromeRemoteDebugInterface() constructor. | [
"Context",
"manager",
"for",
"conveniently",
"handling",
"the",
"lifetime",
"of",
"the",
"underlying",
"chromium",
"instance",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/chrome_context.py#L9-L34 |
fake-name/ChromeController | ChromeController/manager_base.py | ChromeInterface.synchronous_command | def synchronous_command(self, *args, **kwargs):
'''
Forward a command to the remote chrome instance via the transport
connection, and check the return for an error.
If the command resulted in an error, a `ChromeController.ChromeError` is raised,
with the error string containing the response from the remote
... | python | def synchronous_command(self, *args, **kwargs):
'''
Forward a command to the remote chrome instance via the transport
connection, and check the return for an error.
If the command resulted in an error, a `ChromeController.ChromeError` is raised,
with the error string containing the response from the remote
... | [
"def",
"synchronous_command",
"(",
"self",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"transport",
".",
"check_process_ded",
"(",
")",
"ret",
"=",
"self",
".",
"transport",
".",
"synchronous_command",
"(",
"tab_key",
"=",
"self",
"... | Forward a command to the remote chrome instance via the transport
connection, and check the return for an error.
If the command resulted in an error, a `ChromeController.ChromeError` is raised,
with the error string containing the response from the remote
chrome instance describing the problem and it's cause.
... | [
"Forward",
"a",
"command",
"to",
"the",
"remote",
"chrome",
"instance",
"via",
"the",
"transport",
"connection",
"and",
"check",
"the",
"return",
"for",
"an",
"error",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager_base.py#L82-L101 |
fake-name/ChromeController | ChromeController/manager_base.py | ChromeInterface.drain_transport | def drain_transport(self):
'''
"Drain" the transport connection.
This command simply returns all waiting messages sent from the remote chrome
instance. This can be useful when waiting for a specific asynchronous message
from chrome, but higher level calls are better suited for managing wait-for-message
typ... | python | def drain_transport(self):
'''
"Drain" the transport connection.
This command simply returns all waiting messages sent from the remote chrome
instance. This can be useful when waiting for a specific asynchronous message
from chrome, but higher level calls are better suited for managing wait-for-message
typ... | [
"def",
"drain_transport",
"(",
"self",
")",
":",
"self",
".",
"transport",
".",
"check_process_ded",
"(",
")",
"ret",
"=",
"self",
".",
"transport",
".",
"drain",
"(",
"tab_key",
"=",
"self",
".",
"tab_id",
")",
"self",
".",
"transport",
".",
"check_proc... | "Drain" the transport connection.
This command simply returns all waiting messages sent from the remote chrome
instance. This can be useful when waiting for a specific asynchronous message
from chrome, but higher level calls are better suited for managing wait-for-message
type needs. | [
"Drain",
"the",
"transport",
"connection",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager_base.py#L103-L116 |
fake-name/ChromeController | logSetup.py | resetLoggingLocks | def resetLoggingLocks():
'''
This function is a HACK!
Basically, if we fork() while a logging lock is held, the lock
is /copied/ while in the acquired state. However, since we've
forked, the thread that acquired the lock no longer exists,
so it can never unlock the lock, and we end up blocking
forever.
Theref... | python | def resetLoggingLocks():
'''
This function is a HACK!
Basically, if we fork() while a logging lock is held, the lock
is /copied/ while in the acquired state. However, since we've
forked, the thread that acquired the lock no longer exists,
so it can never unlock the lock, and we end up blocking
forever.
Theref... | [
"def",
"resetLoggingLocks",
"(",
")",
":",
"try",
":",
"logging",
".",
"_releaseLock",
"(",
")",
"except",
"RuntimeError",
":",
"pass",
"# The lock is already released",
"# Iterate over the root logger hierarchy, and",
"# force-free all locks.",
"# if logging.Logger.root",
"f... | This function is a HACK!
Basically, if we fork() while a logging lock is held, the lock
is /copied/ while in the acquired state. However, since we've
forked, the thread that acquired the lock no longer exists,
so it can never unlock the lock, and we end up blocking
forever.
Therefore, we manually enter the logg... | [
"This",
"function",
"is",
"a",
"HACK!"
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/logSetup.py#L51-L81 |
fake-name/ChromeController | logSetup.py | RobustFileHandler.stream_emit | def stream_emit(self, record, source_name):
"""
Emit a record.
If a formatter is specified, it is used to format the record.
The record is then written to the stream with a trailing newline. If
exception information is present, it is formatted using
traceback.print_exception and appended to the stream. I... | python | def stream_emit(self, record, source_name):
"""
Emit a record.
If a formatter is specified, it is used to format the record.
The record is then written to the stream with a trailing newline. If
exception information is present, it is formatted using
traceback.print_exception and appended to the stream. I... | [
"def",
"stream_emit",
"(",
"self",
",",
"record",
",",
"source_name",
")",
":",
"if",
"not",
"source_name",
"in",
"self",
".",
"output_streams",
":",
"out_path",
"=",
"os",
".",
"path",
".",
"abspath",
"(",
"\"./logs\"",
")",
"logpath",
"=",
"ansi_escape",... | Emit a record.
If a formatter is specified, it is used to format the record.
The record is then written to the stream with a trailing newline. If
exception information is present, it is formatted using
traceback.print_exception and appended to the stream. If the stream
has an 'encoding' attribute, it is us... | [
"Emit",
"a",
"record",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/logSetup.py#L177-L204 |
fake-name/ChromeController | logSetup.py | RobustFileHandler.emit | def emit(self, record):
"""
Emit a record.
If the stream was not opened because 'delay' was specified in the
constructor, open it before calling the superclass's emit.
"""
failures = 0
while failures < 3:
try:
self.stream_emit(record, record.name)
break
except:
failures += 1
else:
... | python | def emit(self, record):
"""
Emit a record.
If the stream was not opened because 'delay' was specified in the
constructor, open it before calling the superclass's emit.
"""
failures = 0
while failures < 3:
try:
self.stream_emit(record, record.name)
break
except:
failures += 1
else:
... | [
"def",
"emit",
"(",
"self",
",",
"record",
")",
":",
"failures",
"=",
"0",
"while",
"failures",
"<",
"3",
":",
"try",
":",
"self",
".",
"stream_emit",
"(",
"record",
",",
"record",
".",
"name",
")",
"break",
"except",
":",
"failures",
"+=",
"1",
"e... | Emit a record.
If the stream was not opened because 'delay' was specified in the
constructor, open it before calling the superclass's emit. | [
"Emit",
"a",
"record",
"."
] | train | https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/logSetup.py#L206-L225 |
meshy/colour-runner | colour_runner/django_runner.py | ColourRunnerMixin.run_suite | def run_suite(self, suite, **kwargs):
"""This is the version from Django 1.7."""
return self.test_runner(
verbosity=self.verbosity,
failfast=self.failfast,
no_colour=self.no_colour,
).run(suite) | python | def run_suite(self, suite, **kwargs):
"""This is the version from Django 1.7."""
return self.test_runner(
verbosity=self.verbosity,
failfast=self.failfast,
no_colour=self.no_colour,
).run(suite) | [
"def",
"run_suite",
"(",
"self",
",",
"suite",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"self",
".",
"test_runner",
"(",
"verbosity",
"=",
"self",
".",
"verbosity",
",",
"failfast",
"=",
"self",
".",
"failfast",
",",
"no_colour",
"=",
"self",
".",
... | This is the version from Django 1.7. | [
"This",
"is",
"the",
"version",
"from",
"Django",
"1",
".",
"7",
"."
] | train | https://github.com/meshy/colour-runner/blob/40301226e37ce0901904746f373a5816fb22f022/colour_runner/django_runner.py#L11-L17 |
chrisvoncsefalvay/diffiehellman | diffiehellman/diffiehellman.py | DiffieHellman.generate_private_key | def generate_private_key(self):
"""
Generates a private key of key_length bits and attaches it to the object as the __private_key variable.
:return: void
:rtype: void
"""
key_length = self.key_length // 8 + 8
key = 0
try:
key = int.from_bytes... | python | def generate_private_key(self):
"""
Generates a private key of key_length bits and attaches it to the object as the __private_key variable.
:return: void
:rtype: void
"""
key_length = self.key_length // 8 + 8
key = 0
try:
key = int.from_bytes... | [
"def",
"generate_private_key",
"(",
"self",
")",
":",
"key_length",
"=",
"self",
".",
"key_length",
"//",
"8",
"+",
"8",
"key",
"=",
"0",
"try",
":",
"key",
"=",
"int",
".",
"from_bytes",
"(",
"rng",
"(",
"key_length",
")",
",",
"byteorder",
"=",
"'b... | Generates a private key of key_length bits and attaches it to the object as the __private_key variable.
:return: void
:rtype: void | [
"Generates",
"a",
"private",
"key",
"of",
"key_length",
"bits",
"and",
"attaches",
"it",
"to",
"the",
"object",
"as",
"the",
"__private_key",
"variable",
"."
] | train | https://github.com/chrisvoncsefalvay/diffiehellman/blob/06e656ea918c6c069d931a4e9443cb4b57d0a0cb/diffiehellman/diffiehellman.py#L60-L75 |
chrisvoncsefalvay/diffiehellman | diffiehellman/diffiehellman.py | DiffieHellman.generate_public_key | def generate_public_key(self):
"""
Generates public key.
:return: void
:rtype: void
"""
self.public_key = pow(self.generator,
self.__private_key,
self.prime) | python | def generate_public_key(self):
"""
Generates public key.
:return: void
:rtype: void
"""
self.public_key = pow(self.generator,
self.__private_key,
self.prime) | [
"def",
"generate_public_key",
"(",
"self",
")",
":",
"self",
".",
"public_key",
"=",
"pow",
"(",
"self",
".",
"generator",
",",
"self",
".",
"__private_key",
",",
"self",
".",
"prime",
")"
] | Generates public key.
:return: void
:rtype: void | [
"Generates",
"public",
"key",
"."
] | train | https://github.com/chrisvoncsefalvay/diffiehellman/blob/06e656ea918c6c069d931a4e9443cb4b57d0a0cb/diffiehellman/diffiehellman.py#L81-L90 |
chrisvoncsefalvay/diffiehellman | diffiehellman/diffiehellman.py | DiffieHellman.generate_shared_secret | def generate_shared_secret(self, other_public_key, echo_return_key=False):
"""
Generates shared secret from the other party's public key.
:param other_public_key: Other party's public key
:type other_public_key: int
:param echo_return_key: Echo return shared key
:type bo... | python | def generate_shared_secret(self, other_public_key, echo_return_key=False):
"""
Generates shared secret from the other party's public key.
:param other_public_key: Other party's public key
:type other_public_key: int
:param echo_return_key: Echo return shared key
:type bo... | [
"def",
"generate_shared_secret",
"(",
"self",
",",
"other_public_key",
",",
"echo_return_key",
"=",
"False",
")",
":",
"if",
"self",
".",
"verify_public_key",
"(",
"other_public_key",
")",
"is",
"False",
":",
"raise",
"MalformedPublicKey",
"self",
".",
"shared_sec... | Generates shared secret from the other party's public key.
:param other_public_key: Other party's public key
:type other_public_key: int
:param echo_return_key: Echo return shared key
:type bool
:return: void
:rtype: void | [
"Generates",
"shared",
"secret",
"from",
"the",
"other",
"party",
"s",
"public",
"key",
"."
] | train | https://github.com/chrisvoncsefalvay/diffiehellman/blob/06e656ea918c6c069d931a4e9443cb4b57d0a0cb/diffiehellman/diffiehellman.py#L93-L119 |
chrisvoncsefalvay/diffiehellman | diffiehellman/decorators.py | requires_private_key | def requires_private_key(func):
"""
Decorator for functions that require the private key to be defined.
"""
def func_wrapper(self, *args, **kwargs):
if hasattr(self, "_DiffieHellman__private_key"):
func(self, *args, **kwargs)
else:
self.generate_private_key()
... | python | def requires_private_key(func):
"""
Decorator for functions that require the private key to be defined.
"""
def func_wrapper(self, *args, **kwargs):
if hasattr(self, "_DiffieHellman__private_key"):
func(self, *args, **kwargs)
else:
self.generate_private_key()
... | [
"def",
"requires_private_key",
"(",
"func",
")",
":",
"def",
"func_wrapper",
"(",
"self",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"hasattr",
"(",
"self",
",",
"\"_DiffieHellman__private_key\"",
")",
":",
"func",
"(",
"self",
",",
"*",
... | Decorator for functions that require the private key to be defined. | [
"Decorator",
"for",
"functions",
"that",
"require",
"the",
"private",
"key",
"to",
"be",
"defined",
"."
] | train | https://github.com/chrisvoncsefalvay/diffiehellman/blob/06e656ea918c6c069d931a4e9443cb4b57d0a0cb/diffiehellman/decorators.py#L32-L44 |
chrisvoncsefalvay/diffiehellman | diffiehellman/decorators.py | requires_public_key | def requires_public_key(func):
"""
Decorator for functions that require the public key to be defined. By definition, this includes the private key, as such, it's enough to use this to effect definition of both public and private key.
"""
def func_wrapper(self, *args, **kwargs):
if hasattr(self,... | python | def requires_public_key(func):
"""
Decorator for functions that require the public key to be defined. By definition, this includes the private key, as such, it's enough to use this to effect definition of both public and private key.
"""
def func_wrapper(self, *args, **kwargs):
if hasattr(self,... | [
"def",
"requires_public_key",
"(",
"func",
")",
":",
"def",
"func_wrapper",
"(",
"self",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"hasattr",
"(",
"self",
",",
"\"public_key\"",
")",
":",
"func",
"(",
"self",
",",
"*",
"args",
",",
... | Decorator for functions that require the public key to be defined. By definition, this includes the private key, as such, it's enough to use this to effect definition of both public and private key. | [
"Decorator",
"for",
"functions",
"that",
"require",
"the",
"public",
"key",
"to",
"be",
"defined",
".",
"By",
"definition",
"this",
"includes",
"the",
"private",
"key",
"as",
"such",
"it",
"s",
"enough",
"to",
"use",
"this",
"to",
"effect",
"definition",
"... | train | https://github.com/chrisvoncsefalvay/diffiehellman/blob/06e656ea918c6c069d931a4e9443cb4b57d0a0cb/diffiehellman/decorators.py#L47-L59 |
wiredrive/wtframework | wtframework/wtf/utils/debug_utils.py | print_debug | def print_debug(*args, **kwargs):
"""
Print if and only if the debug flag is set true in the config.yaml file.
Args:
args : var args of print arguments.
"""
if WTF_CONFIG_READER.get("debug", False) == True:
print(*args, **kwargs) | python | def print_debug(*args, **kwargs):
"""
Print if and only if the debug flag is set true in the config.yaml file.
Args:
args : var args of print arguments.
"""
if WTF_CONFIG_READER.get("debug", False) == True:
print(*args, **kwargs) | [
"def",
"print_debug",
"(",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"WTF_CONFIG_READER",
".",
"get",
"(",
"\"debug\"",
",",
"False",
")",
"==",
"True",
":",
"print",
"(",
"*",
"args",
",",
"*",
"*",
"kwargs",
")"
] | Print if and only if the debug flag is set true in the config.yaml file.
Args:
args : var args of print arguments. | [
"Print",
"if",
"and",
"only",
"if",
"the",
"debug",
"flag",
"is",
"set",
"true",
"in",
"the",
"config",
".",
"yaml",
"file",
"."
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/utils/debug_utils.py#L64-L73 |
wiredrive/wtframework | wtframework/wtf/utils/debug_utils.py | TimeDebugger.print_time | def print_time(self, message="Time is now: ", print_frame_info=True):
"""
Print the current elapsed time.
Kwargs:
message (str) : Message to prefix the time stamp.
print_frame_info (bool) : Add frame info to the print message.
"""
if print_frame_info:
... | python | def print_time(self, message="Time is now: ", print_frame_info=True):
"""
Print the current elapsed time.
Kwargs:
message (str) : Message to prefix the time stamp.
print_frame_info (bool) : Add frame info to the print message.
"""
if print_frame_info:
... | [
"def",
"print_time",
"(",
"self",
",",
"message",
"=",
"\"Time is now: \"",
",",
"print_frame_info",
"=",
"True",
")",
":",
"if",
"print_frame_info",
":",
"frame_info",
"=",
"inspect",
".",
"getouterframes",
"(",
"inspect",
".",
"currentframe",
"(",
")",
")",
... | Print the current elapsed time.
Kwargs:
message (str) : Message to prefix the time stamp.
print_frame_info (bool) : Add frame info to the print message. | [
"Print",
"the",
"current",
"elapsed",
"time",
"."
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/utils/debug_utils.py#L39-L52 |
wiredrive/wtframework | wtframework/wtf/web/web_utils.py | WebUtils.check_url | def check_url(url):
'''
Check if resource at URL is fetchable. (by trying to fetch it and checking for 200 status.
Args:
url (str): Url to check.
Returns:
Returns a tuple of {True/False, response code}
'''
request = urllib2.Request(url)
... | python | def check_url(url):
'''
Check if resource at URL is fetchable. (by trying to fetch it and checking for 200 status.
Args:
url (str): Url to check.
Returns:
Returns a tuple of {True/False, response code}
'''
request = urllib2.Request(url)
... | [
"def",
"check_url",
"(",
"url",
")",
":",
"request",
"=",
"urllib2",
".",
"Request",
"(",
"url",
")",
"try",
":",
"response",
"=",
"urlopen",
"(",
"request",
")",
"return",
"True",
",",
"response",
".",
"code",
"except",
"urllib2",
".",
"HTTPError",
"a... | Check if resource at URL is fetchable. (by trying to fetch it and checking for 200 status.
Args:
url (str): Url to check.
Returns:
Returns a tuple of {True/False, response code} | [
"Check",
"if",
"resource",
"at",
"URL",
"is",
"fetchable",
".",
"(",
"by",
"trying",
"to",
"fetch",
"it",
"and",
"checking",
"for",
"200",
"status",
"."
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L38-L54 |
wiredrive/wtframework | wtframework/wtf/web/web_utils.py | WebUtils.get_base_url | def get_base_url(webdriver):
"""
Get the current base URL.
Args:
webdriver: Selenium WebDriver instance.
Returns:
str - base URL.
Usage::
driver.get("http://www.google.com/?q=hello+world")
WebUtils.get_base_url(driver)
... | python | def get_base_url(webdriver):
"""
Get the current base URL.
Args:
webdriver: Selenium WebDriver instance.
Returns:
str - base URL.
Usage::
driver.get("http://www.google.com/?q=hello+world")
WebUtils.get_base_url(driver)
... | [
"def",
"get_base_url",
"(",
"webdriver",
")",
":",
"current_url",
"=",
"webdriver",
".",
"current_url",
"try",
":",
"return",
"re",
".",
"findall",
"(",
"\"^[^/]+//[^/$]+\"",
",",
"current_url",
")",
"[",
"0",
"]",
"except",
":",
"raise",
"RuntimeError",
"("... | Get the current base URL.
Args:
webdriver: Selenium WebDriver instance.
Returns:
str - base URL.
Usage::
driver.get("http://www.google.com/?q=hello+world")
WebUtils.get_base_url(driver)
#returns 'http://www.google.com' | [
"Get",
"the",
"current",
"base",
"URL",
"."
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L57-L79 |
wiredrive/wtframework | wtframework/wtf/web/web_utils.py | WebUtils.get_browser_datetime | def get_browser_datetime(webdriver):
"""
Get the current date/time on the web browser as a Python datetime object.
This date matches 'new Date();' when ran in JavaScript console.
Args:
webdriver: Selenium WebDriver instance
Returns:
datetime - Py... | python | def get_browser_datetime(webdriver):
"""
Get the current date/time on the web browser as a Python datetime object.
This date matches 'new Date();' when ran in JavaScript console.
Args:
webdriver: Selenium WebDriver instance
Returns:
datetime - Py... | [
"def",
"get_browser_datetime",
"(",
"webdriver",
")",
":",
"js_stmt",
"=",
"\"\"\"\n var wtf_get_date = new Date();\n return {'month':wtf_get_date.getMonth(), \n 'day':wtf_get_date.getDate(), \n 'year':wtf_get_date.getFullYear(),\n ... | Get the current date/time on the web browser as a Python datetime object.
This date matches 'new Date();' when ran in JavaScript console.
Args:
webdriver: Selenium WebDriver instance
Returns:
datetime - Python datetime object.
Usage::
... | [
"Get",
"the",
"current",
"date",
"/",
"time",
"on",
"the",
"web",
"browser",
"as",
"a",
"Python",
"datetime",
"object",
".",
"This",
"date",
"matches",
"new",
"Date",
"()",
";",
"when",
"ran",
"in",
"JavaScript",
"console",
".",
"Args",
":",
"webdriver",... | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L82-L116 |
wiredrive/wtframework | wtframework/wtf/web/web_utils.py | WebUtils.is_webdriver_mobile | def is_webdriver_mobile(webdriver):
"""
Check if a web driver if mobile.
Args:
webdriver (WebDriver): Selenium webdriver.
"""
browser = webdriver.capabilities['browserName']
if (browser == u('iPhone') or
browser == u('android')):
re... | python | def is_webdriver_mobile(webdriver):
"""
Check if a web driver if mobile.
Args:
webdriver (WebDriver): Selenium webdriver.
"""
browser = webdriver.capabilities['browserName']
if (browser == u('iPhone') or
browser == u('android')):
re... | [
"def",
"is_webdriver_mobile",
"(",
"webdriver",
")",
":",
"browser",
"=",
"webdriver",
".",
"capabilities",
"[",
"'browserName'",
"]",
"if",
"(",
"browser",
"==",
"u",
"(",
"'iPhone'",
")",
"or",
"browser",
"==",
"u",
"(",
"'android'",
")",
")",
":",
"re... | Check if a web driver if mobile.
Args:
webdriver (WebDriver): Selenium webdriver. | [
"Check",
"if",
"a",
"web",
"driver",
"if",
"mobile",
"."
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L119-L133 |
wiredrive/wtframework | wtframework/wtf/web/web_utils.py | WebUtils.is_webdriver_ios | def is_webdriver_ios(webdriver):
"""
Check if a web driver if mobile.
Args:
webdriver (WebDriver): Selenium webdriver.
"""
browser = webdriver.capabilities['browserName']
if (browser == u('iPhone') or
browser == u('iPad')):
return T... | python | def is_webdriver_ios(webdriver):
"""
Check if a web driver if mobile.
Args:
webdriver (WebDriver): Selenium webdriver.
"""
browser = webdriver.capabilities['browserName']
if (browser == u('iPhone') or
browser == u('iPad')):
return T... | [
"def",
"is_webdriver_ios",
"(",
"webdriver",
")",
":",
"browser",
"=",
"webdriver",
".",
"capabilities",
"[",
"'browserName'",
"]",
"if",
"(",
"browser",
"==",
"u",
"(",
"'iPhone'",
")",
"or",
"browser",
"==",
"u",
"(",
"'iPad'",
")",
")",
":",
"return",... | Check if a web driver if mobile.
Args:
webdriver (WebDriver): Selenium webdriver. | [
"Check",
"if",
"a",
"web",
"driver",
"if",
"mobile",
"."
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L136-L150 |
wiredrive/wtframework | wtframework/wtf/web/web_utils.py | WebUtils.row_to_dictionary | def row_to_dictionary(header_row_web_element, row_webelement):
"""
Converts a row into a dictionary of key/values.
(Note: assumes all rows/columns have uniform cells. Does not
account for any row or column spans)
Args:
header_row_web_element (WebElement): W... | python | def row_to_dictionary(header_row_web_element, row_webelement):
"""
Converts a row into a dictionary of key/values.
(Note: assumes all rows/columns have uniform cells. Does not
account for any row or column spans)
Args:
header_row_web_element (WebElement): W... | [
"def",
"row_to_dictionary",
"(",
"header_row_web_element",
",",
"row_webelement",
")",
":",
"headers",
"=",
"header_row_web_element",
".",
"find_elements_by_tag_name",
"(",
"\"th\"",
")",
"data_cells",
"=",
"row_webelement",
".",
"find_elements_by_tag_name",
"(",
"\"td\""... | Converts a row into a dictionary of key/values.
(Note: assumes all rows/columns have uniform cells. Does not
account for any row or column spans)
Args:
header_row_web_element (WebElement): WebElement reference to the column headers.
row_webelement (WebElement):... | [
"Converts",
"a",
"row",
"into",
"a",
"dictionary",
"of",
"key",
"/",
"values",
".",
"(",
"Note",
":",
"assumes",
"all",
"rows",
"/",
"columns",
"have",
"uniform",
"cells",
".",
"Does",
"not",
"account",
"for",
"any",
"row",
"or",
"column",
"spans",
")"... | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L154-L191 |
wiredrive/wtframework | wtframework/wtf/web/web_utils.py | WebUtils.switch_to_window | def switch_to_window(page_class, webdriver):
"""
Utility method for switching between windows. It will search through currently open
windows, then switch to the window matching the provided PageObject class.
Args:
page_class (PageObject): Page class to search for/instantia... | python | def switch_to_window(page_class, webdriver):
"""
Utility method for switching between windows. It will search through currently open
windows, then switch to the window matching the provided PageObject class.
Args:
page_class (PageObject): Page class to search for/instantia... | [
"def",
"switch_to_window",
"(",
"page_class",
",",
"webdriver",
")",
":",
"window_list",
"=",
"list",
"(",
"webdriver",
".",
"window_handles",
")",
"original_window",
"=",
"webdriver",
".",
"current_window_handle",
"for",
"window_handle",
"in",
"window_list",
":",
... | Utility method for switching between windows. It will search through currently open
windows, then switch to the window matching the provided PageObject class.
Args:
page_class (PageObject): Page class to search for/instantiate.
webdriver (WebDriver): Selenium webdriver.
... | [
"Utility",
"method",
"for",
"switching",
"between",
"windows",
".",
"It",
"will",
"search",
"through",
"currently",
"open",
"windows",
"then",
"switch",
"to",
"the",
"window",
"matching",
"the",
"provided",
"PageObject",
"class",
"."
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L196-L221 |
wiredrive/wtframework | wtframework/wtf/web/web_utils.py | BrowserStandBy.start_standby | def start_standby(cls, webdriver=None, max_time=WTF_TIMEOUT_MANAGER.EPIC, sleep=5):
"""
Create an instance of BrowserStandBy() and immediately return a running instance.
This is best used in a 'with' block.
Example::
with BrowserStandBy.start_standby():
# N... | python | def start_standby(cls, webdriver=None, max_time=WTF_TIMEOUT_MANAGER.EPIC, sleep=5):
"""
Create an instance of BrowserStandBy() and immediately return a running instance.
This is best used in a 'with' block.
Example::
with BrowserStandBy.start_standby():
# N... | [
"def",
"start_standby",
"(",
"cls",
",",
"webdriver",
"=",
"None",
",",
"max_time",
"=",
"WTF_TIMEOUT_MANAGER",
".",
"EPIC",
",",
"sleep",
"=",
"5",
")",
":",
"return",
"cls",
"(",
"webdriver",
"=",
"webdriver",
",",
"max_time",
"=",
"max_time",
",",
"sl... | Create an instance of BrowserStandBy() and immediately return a running instance.
This is best used in a 'with' block.
Example::
with BrowserStandBy.start_standby():
# Now browser is in standby, you can do a bunch of stuff with in this block.
# ...
... | [
"Create",
"an",
"instance",
"of",
"BrowserStandBy",
"()",
"and",
"immediately",
"return",
"a",
"running",
"instance",
"."
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L267-L282 |
wiredrive/wtframework | wtframework/wtf/web/web_utils.py | BrowserStandBy.start | def start(self):
"""
Start standing by. A periodic command like 'current_url' will be sent to the
webdriver instance to prevent it from timing out.
"""
self._end_time = datetime.now() + timedelta(seconds=self._max_time)
self._thread = Thread(target=lambda: self.__stand... | python | def start(self):
"""
Start standing by. A periodic command like 'current_url' will be sent to the
webdriver instance to prevent it from timing out.
"""
self._end_time = datetime.now() + timedelta(seconds=self._max_time)
self._thread = Thread(target=lambda: self.__stand... | [
"def",
"start",
"(",
"self",
")",
":",
"self",
".",
"_end_time",
"=",
"datetime",
".",
"now",
"(",
")",
"+",
"timedelta",
"(",
"seconds",
"=",
"self",
".",
"_max_time",
")",
"self",
".",
"_thread",
"=",
"Thread",
"(",
"target",
"=",
"lambda",
":",
... | Start standing by. A periodic command like 'current_url' will be sent to the
webdriver instance to prevent it from timing out. | [
"Start",
"standing",
"by",
".",
"A",
"periodic",
"command",
"like",
"current_url",
"will",
"be",
"sent",
"to",
"the",
"webdriver",
"instance",
"to",
"prevent",
"it",
"from",
"timing",
"out",
"."
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L284-L294 |
wiredrive/wtframework | wtframework/wtf/utils/file_utils.py | temp_path | def temp_path(file_name=None):
"""
Gets a temp path.
Kwargs:
file_name (str) : if file name is specified, it gets appended to the temp dir.
Usage::
temp_file_path = temp_path("myfile")
copyfile("myfile", temp_file_path) # copies 'myfile' to '/tmp/myfile'
"""
if file_... | python | def temp_path(file_name=None):
"""
Gets a temp path.
Kwargs:
file_name (str) : if file name is specified, it gets appended to the temp dir.
Usage::
temp_file_path = temp_path("myfile")
copyfile("myfile", temp_file_path) # copies 'myfile' to '/tmp/myfile'
"""
if file_... | [
"def",
"temp_path",
"(",
"file_name",
"=",
"None",
")",
":",
"if",
"file_name",
"is",
"None",
":",
"file_name",
"=",
"generate_timestamped_string",
"(",
"\"wtf_temp_file\"",
")",
"return",
"os",
".",
"path",
".",
"join",
"(",
"tempfile",
".",
"gettempdir",
"... | Gets a temp path.
Kwargs:
file_name (str) : if file name is specified, it gets appended to the temp dir.
Usage::
temp_file_path = temp_path("myfile")
copyfile("myfile", temp_file_path) # copies 'myfile' to '/tmp/myfile' | [
"Gets",
"a",
"temp",
"path",
"."
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/utils/file_utils.py#L29-L46 |
wiredrive/wtframework | wtframework/wtf/utils/file_utils.py | create_temp_file | def create_temp_file(file_name=None, string_or_another_file=""):
"""
Creates a temp file using a given name. Temp files are placed in the Project/temp/
directory. Any temp files being created with an existing temp file, will be
overridden. This is useful for testing uploads, where you would want to... | python | def create_temp_file(file_name=None, string_or_another_file=""):
"""
Creates a temp file using a given name. Temp files are placed in the Project/temp/
directory. Any temp files being created with an existing temp file, will be
overridden. This is useful for testing uploads, where you would want to... | [
"def",
"create_temp_file",
"(",
"file_name",
"=",
"None",
",",
"string_or_another_file",
"=",
"\"\"",
")",
":",
"temp_file_path",
"=",
"temp_path",
"(",
"file_name",
")",
"if",
"isinstance",
"(",
"string_or_another_file",
",",
"file",
")",
":",
"# attempt to read ... | Creates a temp file using a given name. Temp files are placed in the Project/temp/
directory. Any temp files being created with an existing temp file, will be
overridden. This is useful for testing uploads, where you would want to create a
temporary file with a desired name, upload it, then delete the... | [
"Creates",
"a",
"temp",
"file",
"using",
"a",
"given",
"name",
".",
"Temp",
"files",
"are",
"placed",
"in",
"the",
"Project",
"/",
"temp",
"/",
"directory",
".",
"Any",
"temp",
"files",
"being",
"created",
"with",
"an",
"existing",
"temp",
"file",
"will"... | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/utils/file_utils.py#L49-L84 |
wiredrive/wtframework | wtframework/wtf/utils/file_utils.py | download_to_tempfile | def download_to_tempfile(url, file_name=None, extension=None):
"""
Downloads a URL contents to a tempfile. This is useful for testing downloads.
It will download the contents of a URL to a tempfile, which you then can
open and use to validate the downloaded contents.
Args:
url (str) : URL... | python | def download_to_tempfile(url, file_name=None, extension=None):
"""
Downloads a URL contents to a tempfile. This is useful for testing downloads.
It will download the contents of a URL to a tempfile, which you then can
open and use to validate the downloaded contents.
Args:
url (str) : URL... | [
"def",
"download_to_tempfile",
"(",
"url",
",",
"file_name",
"=",
"None",
",",
"extension",
"=",
"None",
")",
":",
"if",
"not",
"file_name",
":",
"file_name",
"=",
"generate_timestamped_string",
"(",
"\"wtf_temp_file\"",
")",
"if",
"extension",
":",
"file_path",... | Downloads a URL contents to a tempfile. This is useful for testing downloads.
It will download the contents of a URL to a tempfile, which you then can
open and use to validate the downloaded contents.
Args:
url (str) : URL of the contents to download.
Kwargs:
file_name (str): Name of... | [
"Downloads",
"a",
"URL",
"contents",
"to",
"a",
"tempfile",
".",
"This",
"is",
"useful",
"for",
"testing",
"downloads",
".",
"It",
"will",
"download",
"the",
"contents",
"of",
"a",
"URL",
"to",
"a",
"tempfile",
"which",
"you",
"then",
"can",
"open",
"and... | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/utils/file_utils.py#L87-L124 |
wiredrive/wtframework | wtframework/wtf/web/page.py | PageObject.create_page | def create_page(cls, webdriver=None, **kwargs):
"""Class method short cut to call PageFactory on itself. Use it to instantiate
this PageObject using a webdriver.
Args:
webdriver (Webdriver): Instance of Selenium Webdriver.
Returns:
PageObject
Raises:
... | python | def create_page(cls, webdriver=None, **kwargs):
"""Class method short cut to call PageFactory on itself. Use it to instantiate
this PageObject using a webdriver.
Args:
webdriver (Webdriver): Instance of Selenium Webdriver.
Returns:
PageObject
Raises:
... | [
"def",
"create_page",
"(",
"cls",
",",
"webdriver",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"not",
"webdriver",
":",
"webdriver",
"=",
"WTF_WEBDRIVER_MANAGER",
".",
"get_driver",
"(",
")",
"return",
"PageFactory",
".",
"create_page",
"(",
"cl... | Class method short cut to call PageFactory on itself. Use it to instantiate
this PageObject using a webdriver.
Args:
webdriver (Webdriver): Instance of Selenium Webdriver.
Returns:
PageObject
Raises:
InvalidPageError | [
"Class",
"method",
"short",
"cut",
"to",
"call",
"PageFactory",
"on",
"itself",
".",
"Use",
"it",
"to",
"instantiate",
"this",
"PageObject",
"using",
"a",
"webdriver",
"."
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/page.py#L114-L130 |
wiredrive/wtframework | wtframework/wtf/web/page.py | PageFactory.create_page | def create_page(page_object_class_or_interface,
webdriver=None, **kwargs):
"""
Instantiate a page object from a given Interface or Abstract class.
Args:
page_object_class_or_interface (Class): PageObject class, AbstractBaseClass, or
Interface to atte... | python | def create_page(page_object_class_or_interface,
webdriver=None, **kwargs):
"""
Instantiate a page object from a given Interface or Abstract class.
Args:
page_object_class_or_interface (Class): PageObject class, AbstractBaseClass, or
Interface to atte... | [
"def",
"create_page",
"(",
"page_object_class_or_interface",
",",
"webdriver",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"not",
"webdriver",
":",
"webdriver",
"=",
"WTF_WEBDRIVER_MANAGER",
".",
"get_driver",
"(",
")",
"# will be used later when tracking ... | Instantiate a page object from a given Interface or Abstract class.
Args:
page_object_class_or_interface (Class): PageObject class, AbstractBaseClass, or
Interface to attempt to consturct.
Kwargs:
webdriver (WebDriver): Selenium Webdriver to use to instantiate the ... | [
"Instantiate",
"a",
"page",
"object",
"from",
"a",
"given",
"Interface",
"or",
"Abstract",
"class",
"."
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/page.py#L167-L296 |
wiredrive/wtframework | wtframework/wtf/web/page.py | PageFactory.__instantiate_page_object | def __instantiate_page_object(page_obj_class, webdriver, **kwargs):
"""
Attempts to instantiate a page object.
Args:
page_obj_class (PageObject) - PageObject to instantiate.
webdriver (WebDriver) - Selenium webdriver to associate with the PageObject
Retu... | python | def __instantiate_page_object(page_obj_class, webdriver, **kwargs):
"""
Attempts to instantiate a page object.
Args:
page_obj_class (PageObject) - PageObject to instantiate.
webdriver (WebDriver) - Selenium webdriver to associate with the PageObject
Retu... | [
"def",
"__instantiate_page_object",
"(",
"page_obj_class",
",",
"webdriver",
",",
"*",
"*",
"kwargs",
")",
":",
"try",
":",
"page",
"=",
"page_obj_class",
"(",
"webdriver",
",",
"*",
"*",
"kwargs",
")",
"return",
"page",
"except",
"InvalidPageError",
":",
"#... | Attempts to instantiate a page object.
Args:
page_obj_class (PageObject) - PageObject to instantiate.
webdriver (WebDriver) - Selenium webdriver to associate with the PageObject
Returns:
PageObject - If page object instantiation succeeded.
True -... | [
"Attempts",
"to",
"instantiate",
"a",
"page",
"object",
"."
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/page.py#L299-L326 |
wiredrive/wtframework | wtframework/wtf/web/page.py | PageFactory.__itersubclasses | def __itersubclasses(cls, _seen=None):
"""
Credit goes to: http://code.activestate.com/recipes/576949-find-all-subclasses-of-a-given-class/
itersubclasses(cls)
Generator over all subclasses of a given class, in depth first order.
>>> list(itersubclasses(int)) == [bool... | python | def __itersubclasses(cls, _seen=None):
"""
Credit goes to: http://code.activestate.com/recipes/576949-find-all-subclasses-of-a-given-class/
itersubclasses(cls)
Generator over all subclasses of a given class, in depth first order.
>>> list(itersubclasses(int)) == [bool... | [
"def",
"__itersubclasses",
"(",
"cls",
",",
"_seen",
"=",
"None",
")",
":",
"if",
"not",
"isinstance",
"(",
"cls",
",",
"type",
")",
":",
"raise",
"TypeError",
"(",
"u",
"(",
"'Argument ({0}) passed to PageFactory does not appear to be a valid Class.'",
")",
".",
... | Credit goes to: http://code.activestate.com/recipes/576949-find-all-subclasses-of-a-given-class/
itersubclasses(cls)
Generator over all subclasses of a given class, in depth first order.
>>> list(itersubclasses(int)) == [bool]
True
>>> class A(object): pass
>>> class B... | [
"Credit",
"goes",
"to",
":",
"http",
":",
"//",
"code",
".",
"activestate",
".",
"com",
"/",
"recipes",
"/",
"576949",
"-",
"find",
"-",
"all",
"-",
"subclasses",
"-",
"of",
"-",
"a",
"-",
"given",
"-",
"class",
"/"
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/page.py#L330-L371 |
wiredrive/wtframework | wtframework/wtf/web/page.py | PageObjectUtils.check_css_selectors | def check_css_selectors(webdriver, *selectors):
"""Returns true if all CSS selectors passed in is found. This can be used
to quickly validate a page.
Args:
webdriver (Webdriver) : Selenium Webdriver instance
selectors (str) : N number of CSS selectors strings to match ... | python | def check_css_selectors(webdriver, *selectors):
"""Returns true if all CSS selectors passed in is found. This can be used
to quickly validate a page.
Args:
webdriver (Webdriver) : Selenium Webdriver instance
selectors (str) : N number of CSS selectors strings to match ... | [
"def",
"check_css_selectors",
"(",
"webdriver",
",",
"*",
"selectors",
")",
":",
"for",
"selector",
"in",
"selectors",
":",
"try",
":",
"webdriver",
".",
"find_element_by_css_selector",
"(",
"selector",
")",
"except",
":",
"return",
"False",
"# A selector failed."... | Returns true if all CSS selectors passed in is found. This can be used
to quickly validate a page.
Args:
webdriver (Webdriver) : Selenium Webdriver instance
selectors (str) : N number of CSS selectors strings to match against the page.
Returns:
True, False... | [
"Returns",
"true",
"if",
"all",
"CSS",
"selectors",
"passed",
"in",
"is",
"found",
".",
"This",
"can",
"be",
"used",
"to",
"quickly",
"validate",
"a",
"page",
"."
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/page.py#L387-L413 |
wiredrive/wtframework | wtframework/wtf/web/page.py | PageUtils.wait_until_page_loaded | def wait_until_page_loaded(page_obj_class,
webdriver=None,
timeout=WTF_TIMEOUT_MANAGER.NORMAL,
sleep=0.5,
bad_page_classes=[],
message=None,
... | python | def wait_until_page_loaded(page_obj_class,
webdriver=None,
timeout=WTF_TIMEOUT_MANAGER.NORMAL,
sleep=0.5,
bad_page_classes=[],
message=None,
... | [
"def",
"wait_until_page_loaded",
"(",
"page_obj_class",
",",
"webdriver",
"=",
"None",
",",
"timeout",
"=",
"WTF_TIMEOUT_MANAGER",
".",
"NORMAL",
",",
"sleep",
"=",
"0.5",
",",
"bad_page_classes",
"=",
"[",
"]",
",",
"message",
"=",
"None",
",",
"*",
"*",
... | Waits until the page is loaded.
Args:
page_obj_class (Class) : PageObject class
Kwargs:
webdriver (Webdriver) : Selenium Webdriver. Default uses WTF_WEBDRIVER_MANAGER's instance.
timeout (number) : Number of seconds to wait to allow the page to load.
sl... | [
"Waits",
"until",
"the",
"page",
"is",
"loaded",
"."
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/page.py#L422-L510 |
wiredrive/wtframework | wtframework/wtf/web/page.py | PageUtils.wait_until_page_ready | def wait_until_page_ready(page_object, timeout=WTF_TIMEOUT_MANAGER.NORMAL):
"""Waits until document.readyState == Complete (e.g. ready to execute javascript commands)
Args:
page_object (PageObject) : PageObject class
Kwargs:
timeout (number) : timeout period
"""... | python | def wait_until_page_ready(page_object, timeout=WTF_TIMEOUT_MANAGER.NORMAL):
"""Waits until document.readyState == Complete (e.g. ready to execute javascript commands)
Args:
page_object (PageObject) : PageObject class
Kwargs:
timeout (number) : timeout period
"""... | [
"def",
"wait_until_page_ready",
"(",
"page_object",
",",
"timeout",
"=",
"WTF_TIMEOUT_MANAGER",
".",
"NORMAL",
")",
":",
"try",
":",
"do_until",
"(",
"lambda",
":",
"page_object",
".",
"webdriver",
".",
"execute_script",
"(",
"\"return document.readyState\"",
")",
... | Waits until document.readyState == Complete (e.g. ready to execute javascript commands)
Args:
page_object (PageObject) : PageObject class
Kwargs:
timeout (number) : timeout period | [
"Waits",
"until",
"document",
".",
"readyState",
"==",
"Complete",
"(",
"e",
".",
"g",
".",
"ready",
"to",
"execute",
"javascript",
"commands",
")"
] | train | https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/page.py#L513-L527 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.