2020-04-21 15:42:52 -07:00
# Example recipes
2020-03-21 12:05:37 -07:00
### [Authentication](authentication.js)
This script logs in on GitHub.com through Chromium, and then reuses the login cookies state in WebKit. This recipe can be used to speed up tests by logging in once and reusing login state.
2020-03-23 10:39:43 -07:00
### [File uploads](upload.js)
2020-03-21 12:05:37 -07:00
2020-03-23 10:39:43 -07:00
This script uploads a file to an `input` element that accepts file uploads.
2020-03-21 12:05:37 -07:00
<!--
Other examples
2020-03-23 10:39:43 -07:00
* Request interception/server response stub/mock
2020-03-21 12:05:37 -07:00
* Geolocation and mobile emulation
* Handling a popup, eg, accept dialog
2020-03-23 10:39:43 -07:00
* Page navigation and wait for load
* Async page load (see #662 )
2020-04-01 16:06:07 -07:00
-->