You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cdp/css.py
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -937,9 +937,9 @@ def get_background_colors(
937
937
:param node_id: Id of the node to get background colors for.
938
938
:returns: A tuple with the following items:
939
939
940
-
0. **backgroundColors** – *(Optional)* The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load).
941
-
1. **computedFontSize** – *(Optional)* The computed font size for this node, as a CSS computed value string (e.g. '12px').
942
-
2. **computedFontWeight** – *(Optional)* The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100').
940
+
0. **backgroundColors** - *(Optional)* The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load).
941
+
1. **computedFontSize** - *(Optional)* The computed font size for this node, as a CSS computed value string (e.g. '12px').
942
+
2. **computedFontWeight** - *(Optional)* The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100').
:param call_frame_id: Call frame identifier to evaluate on.
489
489
:returns: A tuple with the following items:
490
490
491
-
0. **callFrames** – New stack trace.
492
-
1. **asyncStackTrace** – *(Optional)* Async stack trace, if any.
493
-
2. **asyncStackTraceId** – *(Optional)* Async stack trace, if any.
491
+
0. **callFrames** - New stack trace.
492
+
1. **asyncStackTrace** - *(Optional)* Async stack trace, if any.
493
+
2. **asyncStackTraceId** - *(Optional)* Async stack trace, if any.
494
494
'''
495
495
params: T_JSON_DICT=dict()
496
496
params['callFrameId'] =call_frame_id.to_json()
@@ -620,8 +620,8 @@ def set_breakpoint(
620
620
:param condition: *(Optional)* Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
621
621
:returns: A tuple with the following items:
622
622
623
-
0. **breakpointId** – Id of the created breakpoint for further reference.
624
-
1. **actualLocation** – Location this breakpoint resolved into.
623
+
0. **breakpointId** - Id of the created breakpoint for further reference.
624
+
1. **actualLocation** - Location this breakpoint resolved into.
625
625
'''
626
626
params: T_JSON_DICT=dict()
627
627
params['location'] =location.to_json()
@@ -679,8 +679,8 @@ def set_breakpoint_by_url(
679
679
:param condition: *(Optional)* Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
680
680
:returns: A tuple with the following items:
681
681
682
-
0. **breakpointId** – Id of the created breakpoint for further reference.
683
-
1. **locations** – List of the locations this breakpoint resolved into upon addition.
682
+
0. **breakpointId** - Id of the created breakpoint for further reference.
683
+
1. **locations** - List of the locations this breakpoint resolved into upon addition.
684
684
'''
685
685
params: T_JSON_DICT=dict()
686
686
params['lineNumber'] =line_number
@@ -799,11 +799,11 @@ def set_script_source(
799
799
:param dry_run: *(Optional)* If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.
800
800
:returns: A tuple with the following items:
801
801
802
-
0. **callFrames** – *(Optional)* New stack trace in case editing has happened while VM was stopped.
803
-
1. **stackChanged** – *(Optional)* Whether current call stack was modified after applying the changes.
804
-
2. **asyncStackTrace** – *(Optional)* Async stack trace, if any.
805
-
3. **asyncStackTraceId** – *(Optional)* Async stack trace, if any.
806
-
4. **exceptionDetails** – *(Optional)* Exception details if any.
802
+
0. **callFrames** - *(Optional)* New stack trace in case editing has happened while VM was stopped.
803
+
1. **stackChanged** - *(Optional)* Whether current call stack was modified after applying the changes.
804
+
2. **asyncStackTrace** - *(Optional)* Async stack trace, if any.
805
+
3. **asyncStackTraceId** - *(Optional)* Async stack trace, if any.
806
+
4. **exceptionDetails** - *(Optional)* Exception details if any.
Copy file name to clipboardExpand all lines: cdp/headless_experimental.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -57,8 +57,8 @@ def begin_frame(
57
57
:param screenshot: *(Optional)* If set, a screenshot of the frame will be captured and returned in the response. Otherwise, no screenshot will be captured. Note that capturing a screenshot can fail, for example, during renderer initialization. In such a case, no screenshot data will be returned.
58
58
:returns: A tuple with the following items:
59
59
60
-
0. **hasDamage** – Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the display. Reported for diagnostic uses, may be removed in the future.
61
-
1. **screenshotData** – *(Optional)* Base64-encoded image data of the screenshot, if one was requested and successfully taken.
60
+
0. **hasDamage** - Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the display. Reported for diagnostic uses, may be removed in the future.
61
+
1. **screenshotData** - *(Optional)* Base64-encoded image data of the screenshot, if one was requested and successfully taken.
0 commit comments