Revert node's scrolling into view in page.click()
This change was not intentional in e33a8f818c
This commit is contained in:
parent
e33a8f818c
commit
a981594b1d
@ -555,7 +555,6 @@ class Page extends EventEmitter {
|
|||||||
let node = document.querySelector(selector);
|
let node = document.querySelector(selector);
|
||||||
if (!node)
|
if (!node)
|
||||||
return null;
|
return null;
|
||||||
node.scrollIntoView();
|
|
||||||
let rect = node.getBoundingClientRect();
|
let rect = node.getBoundingClientRect();
|
||||||
return {
|
return {
|
||||||
x: (rect.left + rect.right) / 2,
|
x: (rect.left + rect.right) / 2,
|
||||||
|
Loading…
Reference in New Issue
Block a user