repo
stringlengths
7
55
path
stringlengths
4
223
func_name
stringlengths
1
134
original_string
stringlengths
75
104k
language
stringclasses
1 value
code
stringlengths
75
104k
code_tokens
listlengths
19
28.4k
docstring
stringlengths
1
46.9k
docstring_tokens
listlengths
1
1.97k
sha
stringlengths
40
40
url
stringlengths
87
315
partition
stringclasses
3 values
summary
stringlengths
4
350
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", ")", "-...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5150-L5168
train
This method is used to set forceUpdateOnPageLoad parameter of a ServiceWorker.
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...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5170-L5195
train
This method is used to deliver a push message to the specified registrationId.
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...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5197-L5228
train
This method is used to dispatch Sync Event to the ServiceWorker.
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...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5230-L5248
train
This command is used to set ignore input events.
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"...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5333-L5391
train
Input. dispatchMouseEvent - Dispatches a mouse event to the page.
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", "(...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5393-L5428
train
This method is used to dispatch a touch event to the page.
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",...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5491-L5530
train
Input. synthesizePinchGesture - Synthesizes a pinch gesture over a time period.
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", ...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5715-L5734
train
Layer Tree load snapshot operation.
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",...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L5968-L5986
train
Trace. recordClockSyncMarker - Record a clock sync marker in the trace.
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", ...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6028-L6046
train
This method is used to set the playback rate of the animation.
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", ".", ...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6048-L6066
train
Animation. getCurrentTime - Returns the current time of the animation.
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",...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6068-L6090
train
This method is used to set the paused state of a set of animations.
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...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6092-L6118
train
This method is used to set the timing of an animation node.
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"...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6120-L6142
train
This method is used to seek an animation to a particular time.
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...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6144-L6162
train
This method is used to release the specified list of animations.
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", ...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6164-L6183
train
This method returns the remote object of the Animation with the given id.
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", "....
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6215-L6237
train
This method clears storage for the specified origin.
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", ".", ...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6239-L6260
train
This method returns the usage and quota in bytes.
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", ...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6262-L6280
train
This method is used to track the state of a cache storage list for a given origin.
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...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6282-L6300
train
This method unregisters a cache storage origin from receiving notifications for cache storage.
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...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6341-L6359
train
This method is used to start violation reporting.
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", ...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6391-L6408
train
This method binds the browser to a specific port.
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", ".", ...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6410-L6427
train
This method unbinds the specified port number from the browser.
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",...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6466-L6482
train
This command is used to set the position and size of the browser window.
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", ".", ...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6516-L6578
train
Runtime. evaluate - Evaluates expression on global object.
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", ...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6614-L6678
train
This method is used to call a function on a given object.
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",...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6737-L6755
train
Runtime. releaseObjectGroup - Release all remote objects in a given object group.
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...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6809-L6828
train
This function is used to enable or disable custom object formatter.
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",...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6830-L6866
train
Runtime. compileScript - Executes a script.
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",...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6868-L6923
train
Runtime. runScript - Runs a script in a given context.
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", "...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6970-L6988
train
This method is used to set the active state of all breakpoints on the page.
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...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L6990-L7008
train
This method is used to set the skip pauses of all pages.
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", ...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L7280-L7313
train
This method is used to set the JavaScript source of a script.
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...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L7352-L7370
train
This method is used to set the pause on exceptions mode.
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", ...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L7431-L7457
train
This method is used to set the value of a variable in a callframe.
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...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L7459-L7477
train
This method sets the maximum depth of async call stacks.
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...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L7479-L7499
train
This function is used to set patterns in the script url for blackboxing.
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...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L7501-L7522
train
This method is used to set blackboxed ranges in a script.
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", ...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/Generator/Generated.py#L7587-L7605
train
This method is used to change CPU profiler sampling interval in microseconds.
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L96-L121
train
This method is used to update the headers of the remote browser.
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L165-L236
train
Return the cookies from the remote browser.
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L238-L310
train
Set a cookie on the remote chromium instance.
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L337-L350
train
Get the URL of the current window.
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L352-L378
train
Get the title and current url from the remote session.
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L400-L406
train
Execute a javascript string in the context of the browser tab.
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" ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L408-L467
train
This method searches the DOM tree for a given search string.
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", "()" ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L527-L546
train
Get the response body from Network_getResponseBody and return it as a dict.
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"...
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L549-L587
train
This method is called when the page location has changed.
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L589-L633
train
This function is used to send a blocking navigate to url and then extract the response body and return that.
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L636-L698
train
Get the rendered HTML markup for the current page.
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L701-L711
train
Take a screenshot of the virtual viewport content.
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager.py#L714-L780
train
This method is used to send a blocking navigate command to url.
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/tab_pool.py#L88-L132
train
Get a chromium tab from the pool optionally one that has an association with a specific netloc and URL.
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" ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/exit_handler.py#L22-L33
train
Returns a function to be run when the parent process dies
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/chrome_context.py#L9-L34
train
A context manager for conveniently handling the lifetime of a chrome instance.
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager_base.py#L82-L101
train
This method is used to send a synchronous command to the remote chrome instance via the transport.
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/ChromeController/manager_base.py#L103-L116
train
Drain the transport connection.
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!" ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/logSetup.py#L51-L81
train
This function is a HACK! This function is a HACK! This function is a HACK! This function is a HACK! This function is a HACK! This function is a HACK! This function is a HACK! This function is a HACK! This function is a HACK! This function is a HACK! This function is a HACK! This function is a HACK! This function is a H...
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/logSetup.py#L177-L204
train
Emit a record to the output stream.
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", "." ]
914dd136184e8f1165c7aa6ef30418aaf10c61f0
https://github.com/fake-name/ChromeController/blob/914dd136184e8f1165c7aa6ef30418aaf10c61f0/logSetup.py#L206-L225
train
Emit a record.
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", "." ]
40301226e37ce0901904746f373a5816fb22f022
https://github.com/meshy/colour-runner/blob/40301226e37ce0901904746f373a5816fb22f022/colour_runner/django_runner.py#L11-L17
train
This is the version from Django 1. 7.
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", "." ]
06e656ea918c6c069d931a4e9443cb4b57d0a0cb
https://github.com/chrisvoncsefalvay/diffiehellman/blob/06e656ea918c6c069d931a4e9443cb4b57d0a0cb/diffiehellman/diffiehellman.py#L60-L75
train
Generates a private key of key_length bits and attaches it to the object as the private_key variable.
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", "." ]
06e656ea918c6c069d931a4e9443cb4b57d0a0cb
https://github.com/chrisvoncsefalvay/diffiehellman/blob/06e656ea918c6c069d931a4e9443cb4b57d0a0cb/diffiehellman/diffiehellman.py#L81-L90
train
Generates public key.
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", "." ]
06e656ea918c6c069d931a4e9443cb4b57d0a0cb
https://github.com/chrisvoncsefalvay/diffiehellman/blob/06e656ea918c6c069d931a4e9443cb4b57d0a0cb/diffiehellman/diffiehellman.py#L93-L119
train
Generates a shared secret from the other party s public key.
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", "." ]
06e656ea918c6c069d931a4e9443cb4b57d0a0cb
https://github.com/chrisvoncsefalvay/diffiehellman/blob/06e656ea918c6c069d931a4e9443cb4b57d0a0cb/diffiehellman/decorators.py#L32-L44
train
Decorator for functions that require the private key to be defined.
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", "...
06e656ea918c6c069d931a4e9443cb4b57d0a0cb
https://github.com/chrisvoncsefalvay/diffiehellman/blob/06e656ea918c6c069d931a4e9443cb4b57d0a0cb/diffiehellman/decorators.py#L47-L59
train
Decorator for functions that require a public key to be defined.
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", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/utils/debug_utils.py#L64-L73
train
Print the debug flag if set to True in the config. yaml file.
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", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/utils/debug_utils.py#L39-L52
train
Prints the current elapsed time.
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", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L38-L54
train
Check if resource at URL is fetchable.
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", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L57-L79
train
Get the current base URL.
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",...
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L82-L116
train
Get the current date and time on the web browser as a Python datetime object.
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", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L119-L133
train
Check if a web driver is mobile
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", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L136-L150
train
Check if a web driver is iOS
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", ")"...
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L154-L191
train
Converts a row into a dictionary of key - value pairs.
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", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L196-L221
train
Utility method for switching between windows.
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", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L267-L282
train
Create an instance of BrowserStandBy and immediately return a running instance.
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", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/web_utils.py#L284-L294
train
Start standing by.
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", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/utils/file_utils.py#L29-L46
train
Gets a temp path.
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"...
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/utils/file_utils.py#L49-L84
train
Creates a temporary file with the given name.
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...
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/utils/file_utils.py#L87-L124
train
Downloads a URL contents to a tempfile.
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", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/page.py#L114-L130
train
Class method short cut to call PageFactory. create_page on itself using a webdriver.
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", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/page.py#L167-L296
train
Instantiate a Page object from a given class or interface.
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", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/page.py#L299-L326
train
Attempts to instantiate a page object.
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", "/" ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/page.py#L330-L371
train
Iterate over all subclasses of a given class.
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", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/page.py#L387-L413
train
Checks if all CSS selectors passed in are found.
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", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/page.py#L422-L510
train
Waits until a page is loaded.
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", ")" ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/page.py#L513-L527
train
Waits until the page is ready.
wiredrive/wtframework
wtframework/wtf/assets.py
AssetManager.get_asset_path
def get_asset_path(self, filename): """ Get the full system path of a given asset if it exists. Otherwise it throws an error. Args: filename (str) - File name of a file in /assets folder to fetch the path for. Returns: str - path to the target file. ...
python
def get_asset_path(self, filename): """ Get the full system path of a given asset if it exists. Otherwise it throws an error. Args: filename (str) - File name of a file in /assets folder to fetch the path for. Returns: str - path to the target file. ...
[ "def", "get_asset_path", "(", "self", ",", "filename", ")", ":", "if", "os", ".", "path", ".", "exists", "(", "os", ".", "path", ".", "join", "(", "self", ".", "_asset_path", ",", "filename", ")", ")", ":", "return", "os", ".", "path", ".", "join",...
Get the full system path of a given asset if it exists. Otherwise it throws an error. Args: filename (str) - File name of a file in /assets folder to fetch the path for. Returns: str - path to the target file. Raises: AssetNotFoundError - if asset...
[ "Get", "the", "full", "system", "path", "of", "a", "given", "asset", "if", "it", "exists", ".", "Otherwise", "it", "throws", "an", "error", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/assets.py#L47-L70
train
Get the full system path of a given asset.
wiredrive/wtframework
wtframework/wtf/web/webdriver.py
WebDriverFactory.create_webdriver
def create_webdriver(self, testname=None): ''' Creates an instance of Selenium webdriver based on config settings. This should only be called by a shutdown hook. Do not call directly within a test. Kwargs: testname: Optional test name to pass, t...
python
def create_webdriver(self, testname=None): ''' Creates an instance of Selenium webdriver based on config settings. This should only be called by a shutdown hook. Do not call directly within a test. Kwargs: testname: Optional test name to pass, t...
[ "def", "create_webdriver", "(", "self", ",", "testname", "=", "None", ")", ":", "try", ":", "driver_type", "=", "self", ".", "_config_reader", ".", "get", "(", "self", ".", "DRIVER_TYPE_CONFIG", ")", "except", ":", "driver_type", "=", "self", ".", "DRIVER_...
Creates an instance of Selenium webdriver based on config settings. This should only be called by a shutdown hook. Do not call directly within a test. Kwargs: testname: Optional test name to pass, this gets appended to the test name sent ...
[ "Creates", "an", "instance", "of", "Selenium", "webdriver", "based", "on", "config", "settings", ".", "This", "should", "only", "be", "called", "by", "a", "shutdown", "hook", ".", "Do", "not", "call", "directly", "within", "a", "test", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/webdriver.py#L116-L161
train
Create a Selenium WebDriver instance based on config settings.
wiredrive/wtframework
wtframework/wtf/web/webdriver.py
WebDriverFactory.__create_driver_from_browser_config
def __create_driver_from_browser_config(self): ''' Reads the config value for browser type. ''' try: browser_type = self._config_reader.get( WebDriverFactory.BROWSER_TYPE_CONFIG) except KeyError: _wtflog("%s missing is missing from config f...
python
def __create_driver_from_browser_config(self): ''' Reads the config value for browser type. ''' try: browser_type = self._config_reader.get( WebDriverFactory.BROWSER_TYPE_CONFIG) except KeyError: _wtflog("%s missing is missing from config f...
[ "def", "__create_driver_from_browser_config", "(", "self", ")", ":", "try", ":", "browser_type", "=", "self", ".", "_config_reader", ".", "get", "(", "WebDriverFactory", ".", "BROWSER_TYPE_CONFIG", ")", "except", "KeyError", ":", "_wtflog", "(", "\"%s missing is mis...
Reads the config value for browser type.
[ "Reads", "the", "config", "value", "for", "browser", "type", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/webdriver.py#L163-L195
train
Reads the config value for browser type.
wiredrive/wtframework
wtframework/wtf/web/webdriver.py
WebDriverFactory.__create_safari_driver
def __create_safari_driver(self): ''' Creates an instance of Safari webdriver. ''' # Check for selenium jar env file needed for safari driver. if not os.getenv(self.__SELENIUM_SERVER_JAR_ENV): # If not set, check if we have a config setting for it. try: ...
python
def __create_safari_driver(self): ''' Creates an instance of Safari webdriver. ''' # Check for selenium jar env file needed for safari driver. if not os.getenv(self.__SELENIUM_SERVER_JAR_ENV): # If not set, check if we have a config setting for it. try: ...
[ "def", "__create_safari_driver", "(", "self", ")", ":", "# Check for selenium jar env file needed for safari driver.", "if", "not", "os", ".", "getenv", "(", "self", ".", "__SELENIUM_SERVER_JAR_ENV", ")", ":", "# If not set, check if we have a config setting for it.", "try", ...
Creates an instance of Safari webdriver.
[ "Creates", "an", "instance", "of", "Safari", "webdriver", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/webdriver.py#L198-L214
train
Creates an instance of Safari webdriver.
wiredrive/wtframework
wtframework/wtf/web/webdriver.py
WebDriverFactory.__create_phantom_js_driver
def __create_phantom_js_driver(self): ''' Creates an instance of PhantomJS driver. ''' try: return webdriver.PhantomJS(executable_path=self._config_reader.get(self.PHANTOMEJS_EXEC_PATH), service_args=['--ignore-ssl-errors=true']) ...
python
def __create_phantom_js_driver(self): ''' Creates an instance of PhantomJS driver. ''' try: return webdriver.PhantomJS(executable_path=self._config_reader.get(self.PHANTOMEJS_EXEC_PATH), service_args=['--ignore-ssl-errors=true']) ...
[ "def", "__create_phantom_js_driver", "(", "self", ")", ":", "try", ":", "return", "webdriver", ".", "PhantomJS", "(", "executable_path", "=", "self", ".", "_config_reader", ".", "get", "(", "self", ".", "PHANTOMEJS_EXEC_PATH", ")", ",", "service_args", "=", "[...
Creates an instance of PhantomJS driver.
[ "Creates", "an", "instance", "of", "PhantomJS", "driver", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/webdriver.py#L216-L224
train
Creates an instance of PhantomJS driver.
wiredrive/wtframework
wtframework/wtf/web/webdriver.py
WebDriverFactory.__create_remote_webdriver_from_config
def __create_remote_webdriver_from_config(self, testname=None): ''' Reads the config value for browser type. ''' desired_capabilities = self._generate_desired_capabilities(testname) remote_url = self._config_reader.get( WebDriverFactory.REMOTE_URL_CONFIG) ...
python
def __create_remote_webdriver_from_config(self, testname=None): ''' Reads the config value for browser type. ''' desired_capabilities = self._generate_desired_capabilities(testname) remote_url = self._config_reader.get( WebDriverFactory.REMOTE_URL_CONFIG) ...
[ "def", "__create_remote_webdriver_from_config", "(", "self", ",", "testname", "=", "None", ")", ":", "desired_capabilities", "=", "self", ".", "_generate_desired_capabilities", "(", "testname", ")", "remote_url", "=", "self", ".", "_config_reader", ".", "get", "(", ...
Reads the config value for browser type.
[ "Reads", "the", "config", "value", "for", "browser", "type", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/webdriver.py#L226-L261
train
Creates a remote webdriver instance from the config file.
wiredrive/wtframework
wtframework/wtf/web/webdriver.py
WebDriverManager.clean_up_webdrivers
def clean_up_webdrivers(self): ''' Clean up webdrivers created during execution. ''' # Quit webdrivers. _wtflog.info("WebdriverManager: Cleaning up webdrivers") try: if self.__use_shutdown_hook: for key in self.__registered_drivers.keys(): ...
python
def clean_up_webdrivers(self): ''' Clean up webdrivers created during execution. ''' # Quit webdrivers. _wtflog.info("WebdriverManager: Cleaning up webdrivers") try: if self.__use_shutdown_hook: for key in self.__registered_drivers.keys(): ...
[ "def", "clean_up_webdrivers", "(", "self", ")", ":", "# Quit webdrivers.", "_wtflog", ".", "info", "(", "\"WebdriverManager: Cleaning up webdrivers\"", ")", "try", ":", "if", "self", ".", "__use_shutdown_hook", ":", "for", "key", "in", "self", ".", "__registered_dri...
Clean up webdrivers created during execution.
[ "Clean", "up", "webdrivers", "created", "during", "execution", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/webdriver.py#L402-L419
train
Clean up webdrivers created during execution.
wiredrive/wtframework
wtframework/wtf/web/webdriver.py
WebDriverManager.close_driver
def close_driver(self): """ Close current running instance of Webdriver. Usage:: driver = WTF_WEBDRIVER_MANAGER.new_driver() driver.get("http://the-internet.herokuapp.com") WTF_WEBDRIVER_MANAGER.close_driver() """ channel = self.__get_channel...
python
def close_driver(self): """ Close current running instance of Webdriver. Usage:: driver = WTF_WEBDRIVER_MANAGER.new_driver() driver.get("http://the-internet.herokuapp.com") WTF_WEBDRIVER_MANAGER.close_driver() """ channel = self.__get_channel...
[ "def", "close_driver", "(", "self", ")", ":", "channel", "=", "self", ".", "__get_channel", "(", ")", "driver", "=", "self", ".", "__get_driver_for_channel", "(", "channel", ")", "if", "self", ".", "__config", ".", "get", "(", "self", ".", "REUSE_BROWSER",...
Close current running instance of Webdriver. Usage:: driver = WTF_WEBDRIVER_MANAGER.new_driver() driver.get("http://the-internet.herokuapp.com") WTF_WEBDRIVER_MANAGER.close_driver()
[ "Close", "current", "running", "instance", "of", "Webdriver", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/webdriver.py#L421-L453
train
Closes current running instance of Webdriver.
wiredrive/wtframework
wtframework/wtf/web/webdriver.py
WebDriverManager.get_driver
def get_driver(self): ''' Get an already running instance of Webdriver. If there is none, it will create one. Returns: Webdriver - Selenium Webdriver instance. Usage:: driver = WTF_WEBDRIVER_MANAGER.new_driver() driver.get("http://the-internet.herok...
python
def get_driver(self): ''' Get an already running instance of Webdriver. If there is none, it will create one. Returns: Webdriver - Selenium Webdriver instance. Usage:: driver = WTF_WEBDRIVER_MANAGER.new_driver() driver.get("http://the-internet.herok...
[ "def", "get_driver", "(", "self", ")", ":", "driver", "=", "self", ".", "__get_driver_for_channel", "(", "self", ".", "__get_channel", "(", ")", ")", "if", "driver", "is", "None", ":", "driver", "=", "self", ".", "new_driver", "(", ")", "return", "driver...
Get an already running instance of Webdriver. If there is none, it will create one. Returns: Webdriver - Selenium Webdriver instance. Usage:: driver = WTF_WEBDRIVER_MANAGER.new_driver() driver.get("http://the-internet.herokuapp.com") same_driver = WTF_W...
[ "Get", "an", "already", "running", "instance", "of", "Webdriver", ".", "If", "there", "is", "none", "it", "will", "create", "one", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/webdriver.py#L455-L473
train
Get an already running instance of Webdriver.
wiredrive/wtframework
wtframework/wtf/web/webdriver.py
WebDriverManager.new_driver
def new_driver(self, testname=None): ''' Used at a start of a test to get a new instance of WebDriver. If the 'resuebrowser' setting is true, it will use a recycled WebDriver instance with delete_all_cookies() called. Kwargs: testname (str) - Optional test name to ...
python
def new_driver(self, testname=None): ''' Used at a start of a test to get a new instance of WebDriver. If the 'resuebrowser' setting is true, it will use a recycled WebDriver instance with delete_all_cookies() called. Kwargs: testname (str) - Optional test name to ...
[ "def", "new_driver", "(", "self", ",", "testname", "=", "None", ")", ":", "channel", "=", "self", ".", "__get_channel", "(", ")", "# Get reference for the current driver.", "driver", "=", "self", ".", "__get_driver_for_channel", "(", "channel", ")", "if", "self"...
Used at a start of a test to get a new instance of WebDriver. If the 'resuebrowser' setting is true, it will use a recycled WebDriver instance with delete_all_cookies() called. Kwargs: testname (str) - Optional test name to pass to Selenium Grid. Helpful for ...
[ "Used", "at", "a", "start", "of", "a", "test", "to", "get", "a", "new", "instance", "of", "WebDriver", ".", "If", "the", "resuebrowser", "setting", "is", "true", "it", "will", "use", "a", "recycled", "WebDriver", "instance", "with", "delete_all_cookies", "...
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/webdriver.py#L488-L552
train
Create a new instance of Selenium Webdriver.
wiredrive/wtframework
wtframework/wtf/web/webdriver.py
WebDriverManager.__register_driver
def __register_driver(self, channel, webdriver): "Register webdriver to a channel." # Add to list of webdrivers to cleanup. if not self.__registered_drivers.has_key(channel): self.__registered_drivers[channel] = [] # set to new empty array self.__registered_drivers[channel...
python
def __register_driver(self, channel, webdriver): "Register webdriver to a channel." # Add to list of webdrivers to cleanup. if not self.__registered_drivers.has_key(channel): self.__registered_drivers[channel] = [] # set to new empty array self.__registered_drivers[channel...
[ "def", "__register_driver", "(", "self", ",", "channel", ",", "webdriver", ")", ":", "# Add to list of webdrivers to cleanup.", "if", "not", "self", ".", "__registered_drivers", ".", "has_key", "(", "channel", ")", ":", "self", ".", "__registered_drivers", "[", "c...
Register webdriver to a channel.
[ "Register", "webdriver", "to", "a", "channel", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/webdriver.py#L555-L565
train
Register webdriver to a channel.
wiredrive/wtframework
wtframework/wtf/web/webdriver.py
WebDriverManager.__unregister_driver
def __unregister_driver(self, channel): "Unregister webdriver" driver = self.__get_driver_for_channel(channel) if self.__registered_drivers.has_key(channel) \ and driver in self.__registered_drivers[channel]: self.__registered_drivers[channel].remove(driver) ...
python
def __unregister_driver(self, channel): "Unregister webdriver" driver = self.__get_driver_for_channel(channel) if self.__registered_drivers.has_key(channel) \ and driver in self.__registered_drivers[channel]: self.__registered_drivers[channel].remove(driver) ...
[ "def", "__unregister_driver", "(", "self", ",", "channel", ")", ":", "driver", "=", "self", ".", "__get_driver_for_channel", "(", "channel", ")", "if", "self", ".", "__registered_drivers", ".", "has_key", "(", "channel", ")", "and", "driver", "in", "self", "...
Unregister webdriver
[ "Unregister", "webdriver" ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/webdriver.py#L567-L576
train
Unregister webdriver
wiredrive/wtframework
wtframework/wtf/web/webdriver.py
WebDriverManager.__get_channel
def __get_channel(self): "Get the channel to register webdriver to." if self.__config.get(WebDriverManager.ENABLE_THREADING_SUPPORT, False): channel = current_thread().ident else: channel = 0 return channel
python
def __get_channel(self): "Get the channel to register webdriver to." if self.__config.get(WebDriverManager.ENABLE_THREADING_SUPPORT, False): channel = current_thread().ident else: channel = 0 return channel
[ "def", "__get_channel", "(", "self", ")", ":", "if", "self", ".", "__config", ".", "get", "(", "WebDriverManager", ".", "ENABLE_THREADING_SUPPORT", ",", "False", ")", ":", "channel", "=", "current_thread", "(", ")", ".", "ident", "else", ":", "channel", "=...
Get the channel to register webdriver to.
[ "Get", "the", "channel", "to", "register", "webdriver", "to", "." ]
ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216
https://github.com/wiredrive/wtframework/blob/ef7f86c4d4cf7fb17745fd627b3cc4a41f4c0216/wtframework/wtf/web/webdriver.py#L585-L592
train
Get the channel to register webdriver to.