jsoverson / hackium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

page.mouse.click fails when x/y are strings

jsoverson opened this issue · comments

Actual:

Passing numbers as strings to page.mouse.click(x,y) causes it to fail, e.g.

await page.mouse.click('100', '100');

gives error:

UnhandledPromiseRejectionWarning: Error: Protocol error (Input.dispatchMouseEvent): Invalid parameters x: double value expected; y: double value expected

Expected:

  1. Method should throw on invalid type.