docs: add table of contents, highlight min Java version (#220)

This commit is contained in:
Yury Semikhatsky 2021-01-21 09:04:53 -08:00 committed by GitHub
parent 3376836752
commit bfc7bcdc4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,9 +14,21 @@ Playwright is a Java library to automate [Chromium](https://www.chromium.org/Hom
Headless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.
* [Usage](#usage)
- [Add Maven dependency](#add-maven-dependency)
- [Is Playwright thread-safe?](#is-playwright-thread-safe)
* [Examples](#examples)
- [Page screenshot](#page-screenshot)
- [Mobile and geolocation](#mobile-and-geolocation)
- [Evaluate JavaScript in browser](#evaluate-javascript-in-browser)
- [Intercept network requests](#intercept-network-requests)
* [Documentation](#documentation)
* [Contributing](#contributing)
* [Is Playwright for Java ready?](#is-playwright-for-java-ready)
## Usage
Playwright supports Java 8 and above.
Playwright requires **Java 8** or newer.
#### Add Maven dependency
@ -103,7 +115,7 @@ public class MobileAndGeolocation {
}
```
#### Evaluate in browser context
#### Evaluate JavaScript in browser
This code snippet navigates to example.com in Firefox, and executes a script in the page context.