puppeteer/lib
Andrey Lushnikov f55d005cbe
fix(page): teach page.click() to click partially offscreen buttons (#2806)
Originally, we use `Element.scrollIntoViewIfNeeded` to make sure
button is on screen before trying to click it.

However, `Element.scrollIntoViewIfNeeded` doesn't work in certain
scenarios, e.g. when element is partially visible and horizontal
scrolling is required to make it fully visible.

This patch polyfills `element.scrollIntoViewIfNeeded` using
IntersectionObserver and `Element.scrollIntoView`.

Fixes #2804.
2018-06-26 18:00:55 -07:00
..
.eslintrc.js Introduce Eslint to validate style 2017-06-11 01:32:59 -07:00
Browser.js feat(target): add support for target.page for 'backgroud_page' (#2600) 2018-06-14 13:58:51 -07:00
BrowserFetcher.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
Connection.js feat: nicer protocol error messages (#2742) 2018-06-14 15:27:59 -07:00
Coverage.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
Dialog.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
ElementHandle.js fix(page): teach page.click() to click partially offscreen buttons (#2806) 2018-06-26 18:00:55 -07:00
EmulationManager.js chore(types): type check the rest of the protocol (#2328) 2018-04-07 17:58:52 -07:00
ExecutionContext.js feat: nicer protocol error messages (#2742) 2018-06-14 15:27:59 -07:00
externs.d.ts feat(BrowserContext): introduce Browser Contexts. (#2523) 2018-05-10 13:26:08 -07:00
FrameManager.js fix: don't pass a reference to the page into frames (#2766) 2018-06-19 00:33:45 -07:00
helper.js fix(helpers): support thrown strings and numbers in getExceptionMessage (#2715) 2018-06-14 10:23:13 -07:00
Input.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
Launcher.js fix: disable OOPIF by default (#2661) 2018-06-01 15:20:37 -07:00
Multimap.js chore: Use Typescript to lint JSDoc annotations (#986) 2017-10-09 22:31:40 -07:00
NavigatorWatcher.js chore: stop using console.assert everywhere (#2646) 2018-05-31 16:53:51 -07:00
NetworkManager.js feat(request): add new error reasons for request.abort() (#2771) 2018-06-19 10:46:17 -07:00
Page.js docs(api.md): clarify docs about waitForNavigation (#2788) 2018-06-26 13:42:50 -07:00
Pipe.js feat(appMode): support pipes for appMode (#2032) 2018-02-14 17:51:29 -08:00
Puppeteer.js chore(types): upgrade to TypeScript 2.8.1 (#2304) 2018-04-04 14:06:21 -07:00
Target.js feat(target): add support for target.page for 'backgroud_page' (#2600) 2018-06-14 13:58:51 -07:00
TaskQueue.js chore: refactor Browser.js into seperate files (#2097) 2018-02-26 12:10:06 -08:00
Tracing.js feat(tracing): enable high resolution JavaScript sampling (#2702) 2018-06-14 10:33:05 -07:00
USKeyboardLayout.js feat(keyboard): Accept codes (#1116) 2017-10-23 12:43:45 -07:00
Worker.js feat(worker): implement pageerror event from a worker (#2795) 2018-06-25 15:10:36 -07:00