Joel Einbinder
39b22b41c5
feat: make JSHandle generic ( #140 )
...
This makes it so that JSHandles and ElementHandles are aware of what types they point to. As a fun bonus, `$eval('input')` knows its going to get an HTMLInputElement.
Most of this patch is casting things where previously we just assumed ElementHandles held the right kind of node. This gets us closer to being able to turn on `noImplicityAny` as well.
#6
2019-12-05 16:26:09 -08:00
Andrey Lushnikov
e4fad11c16
chore(ci): use bionic for travis
2019-12-05 15:18:55 -08:00
Andrey Lushnikov
fe34ddf766
chore(ci): attempt to bring back travis to life
2019-12-05 15:13:20 -08:00
Andrey Lushnikov
81c8a43e4b
chore(ci): add travis deps to run WebKit Linux ( #159 )
2019-12-05 15:57:44 -07:00
Dmitry Gozman
e992c7fa7d
chore: unify screenshot handling between browsers, introduce Screenshotter everywhere ( #156 )
2019-12-05 14:48:39 -08:00
Pavel Feldman
69d2d81c05
feat(webkit): emulate background and device scale ( #157 )
2019-12-05 14:44:35 -08:00
Yury Semikhatsky
b84d3c6cbe
chore: do not accumulate protocol messages for debugging ( #150 )
2019-12-05 14:13:17 -08:00
Andrey Lushnikov
929a5944bd
test: fix chromium tests ( #155 )
...
3 chromium tests were failing on Linux.
2019-12-05 15:12:22 -07:00
Dmitry Gozman
51ca756efe
chore: encapsulate target business in Browser class ( #151 )
...
Page and BrowserContext are now closer to be reused between browsers.
2019-12-05 14:11:48 -08:00
Andrey Lushnikov
ed39499cea
rebaseline(webkit): rebaseline webkit atop of @131efe8ad ( #154 )
...
Review URL: 36a589c93d
2019-12-05 14:01:25 -08:00
Joel Einbinder
7af47b6fcb
mark: v0.9.1-post
2019-12-05 21:27:17 +00:00
Pavel Feldman
2d77760f01
chore: move tests around after targets extraction ( #153 )
2019-12-05 13:15:17 -08:00
Joel Einbinder
79d3b5dffd
fix: docs for 0.9.1
2019-12-05 21:11:29 +00:00
Joel Einbinder
4d768d6bc3
chore: mark version v0.9.1
2019-12-05 21:10:13 +00:00
Andrey Lushnikov
df55f29373
devops(ci): cleanup travis config
2019-12-05 13:04:41 -08:00
Dmitry Gozman
0a9377e0a9
chore: prepare to npm publish ( #148 )
...
- setup .npmignore;
- index.js selecting a browser;
- minor package.json tweaks;
- example script which works against npm pack'ed module.
2019-12-05 11:29:16 -08:00
Joel Einbinder
4478c653fd
fix(install): generate new protocol.d.ts when browsers are downloaded ( #149 )
2019-12-05 12:21:55 -07:00
Dmitry Gozman
d4f0084f67
chore: move element coordinates handling to common ( #139 )
...
Browser now implement boundingBox(), contentQuads() and layoutViewport().
2019-12-05 09:54:50 -08:00
Dmitry Gozman
3f554b3273
fix: handle failures of adoptElementHandle ( #134 )
...
There is no way to trigger this issue through the api just yet, but there will be
once we support handles as selectors.
2019-12-05 09:45:36 -07:00
Yury Semikhatsky
25af050bd4
feat(webkit): add page back/forward commands ( #144 )
2019-12-05 08:32:52 -08:00
Yury Semikhatsky
b5af3cac11
fix(install): print version of the browser being downloaded ( #146 )
2019-12-05 08:30:58 -08:00
Pavel Feldman
4106091870
fix: release webview upon page.close ( #147 )
2019-12-04 23:28:47 -08:00
Yury Semikhatsky
5061f70300
feat(webkit): roll to 1011 ( #145 )
2019-12-04 23:25:53 -07:00
Yury Semikhatsky
5432d16052
feat(backend): add go back/forward commands to Page ( #143 )
2019-12-04 18:14:34 -08:00
Andrey Lushnikov
d54939f861
feat(osx): implement clicks on WebKit ( #142 )
...
Review URL: 5a76cd676a
This implements mouse events on WebKit-Mac. This uses a similar
approach to the GTK port, creating a NativeWebMouseEvent without
a backing native event and dispatching it to WebPageProxy.
WebKit WebDriver implementation takes a different approach where they
employ `[nswindow sendEvent:]` method. Unfortunately for us, it's
quite challenging to make this method work for the headless mode
on OSX.
For future reference: chromium has a nice
"event_generator_delegate_mac.mm" that dispatches events right into
`NSResponder`. This approach didn't work as well for us here.
2019-12-04 18:02:39 -08:00
Pavel Feldman
f6e9ea9aec
feat(webkit): roll to 1009
2019-12-04 17:59:56 -08:00
Joel Einbinder
9f603c49fb
feat: easy download ( #56 )
2019-12-04 17:58:38 -08:00
Pavel Feldman
46a46d8da1
feat(webkit): respect default context in gtk ( #141 )
2019-12-04 17:07:28 -08:00
Pavel
65a52294e2
feat(webkit): roll webkit to 1008
2019-12-04 16:14:48 -08:00
Pavel Feldman
e1c4eaae28
chore: make targets chromium feature ( #137 )
2019-12-04 16:12:43 -08:00
Yury Semikhatsky
3305363f2a
fix(webkit): pass --headless only on Mac ( #135 )
2019-12-04 17:08:35 -07:00
Dmitry Gozman
fc5898892b
feat(selectors): support optional "visible" property in all selectors ( #129 )
2019-12-04 13:11:10 -08:00
Pavel Feldman
e358b47f76
feat(dialogs): implement dialogs in WebKit + headless ( #132 )
2019-12-04 11:36:33 -08:00
Pavel Feldman
ffb6d0fa84
feat(webkit): sort out execution contexts ( #131 )
2019-12-04 10:42:45 -08:00
Joel Einbinder
492f539310
chore(firefox): lint against the juggler protocol ( #94 )
2019-12-04 10:33:29 -08:00
Pavel Feldman
c370327b4d
feat(webkit): emulate mac viewport emulation ( #130 )
2019-12-03 17:10:45 -08:00
Pavel Feldman
01b321d014
feat(webkit): implement headless on Mac ( #128 )
2019-12-03 14:10:01 -08:00
Yury Semikhatsky
fa476fa729
chore(webkit): bump revision to 1004 ( #127 )
2019-12-03 14:41:35 -07:00
Dmitry Gozman
e124d44a55
chore: rework wait task to accept arbitrary task on dom world ( #126 )
2019-12-03 11:51:41 -07:00
Yury Semikhatsky
99f9b11be8
chore(scripts): ignore untracked files during patch export ( #124 )
2019-12-03 10:47:48 -08:00
Yury Semikhatsky
ba54ad46b3
feat(page): add Page.setJavaScriptEnabled for WebKit ( #125 )
2019-12-03 10:47:02 -08:00
Dmitry Gozman
6b3c2632e7
feat(selectors): support various selectors in waitFor methods ( #122 )
2019-12-03 10:43:13 -08:00
Yury Semikhatsky
9cb0c95f5d
feat(webkit): implement setJavaScriptEnabled in WebKit ( #123 )
2019-12-03 10:21:24 -08:00
Dmitry Gozman
bb1433a143
feat(selectors): support various kinds of selectors ( #118 )
...
This adds support for generic "engine=body [>> engine=body]*" selector syntax
and auto-detects simple css or xpath.
2019-12-02 17:33:44 -08:00
Pavel Feldman
505c9e3660
test: uncomment more cookies tests
2019-12-02 17:02:33 -08:00
Pavel Feldman
8989da6c16
fix(cookies): follow up to make all platform tests pass
2019-12-02 16:48:38 -08:00
Pavel Feldman
0ffd99bdac
feat(webkit): roll webkit to 1003
2019-12-02 16:40:40 -08:00
Pavel Feldman
040f93faa2
feat(cookies): implement cookies across the board ( #121 )
2019-12-02 16:36:46 -08:00
Yury Semikhatsky
2ca2a4cb18
feat(launcher): throw on browser launch failure, default args ( #119 )
2019-12-02 16:17:53 -08:00
Pavel Feldman
b3f55716ab
feat(webkit): implement browser contexts on Mac, cookies everywhere ( #120 )
...
Review URL: e7d7316e21
2019-12-02 15:37:05 -08:00