Revert node's scrolling into view in page.click()

This change was not intentional in e33a8f818c
This commit is contained in:
Andrey Lushnikov 2017-07-20 00:52:44 -07:00
parent e33a8f818c
commit a981594b1d

View File

@ -555,7 +555,6 @@ class Page extends EventEmitter {
let node = document.querySelector(selector);
if (!node)
return null;
node.scrollIntoView();
let rect = node.getBoundingClientRect();
return {
x: (rect.left + rect.right) / 2,