Skip to content

Commit 99f7ced

Browse files
andreasttAutomatedTester
authored andcommitted
take element screenshot: drop scroll feature
Issue #1245 points out that you cannot pass data parameters to a GET method request, so it is currently impossible to pass a "scroll" field to Take Element Screenshot. It was also discovered in the discussion that no vendors implement this feature. Because we want the specification to match reality, this patch removes the "scroll" field for Take Element Screenshot. Fixes: #1245 This was originally fixed in 3d0755c, but accidentally got partly reverted in its merge into master in 4265381. Signed-off-by: Sam Sneddon <gsnedders@apple.com>
1 parent 3818807 commit 99f7ced

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

index.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9530,17 +9530,10 @@ <h3><dfn>Take Element Screenshot</dfn></h3>
95309530
The <a>Take Element Screenshot</a> <a>command</a>
95319531
takes a screenshot of the visible region encompassed
95329532
by the <a>bounding rectangle</a> of an <a>element</a>.
9533-
If given a parameter argument <code>scroll</code>
9534-
that evaluates to false, the <a>element</a> will not be <a>scrolled into view</a>.
95359533

95369534
<p>The <a>remote end steps</a> are:
95379535

95389536
<ol>
9539-
<li><p>Let <var>scroll</var> be the result
9540-
of <a>getting the property</a> <code>scroll</code> from
9541-
<var>parameters</var> if it is not <a>undefined</a>.
9542-
Otherwise let it be true.
9543-
95449537
<li><p>If the <a>current browsing context</a> is <a>no longer open</a>,
95459538
return <a>error</a> with <a>error code</a> <a>no such window</a>.
95469539

0 commit comments

Comments
 (0)