From 125b4a3474d131b2b5bdbbbb7cec7582752ed325 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Wed, 18 Nov 2020 14:07:13 -0800 Subject: [PATCH] chore: update readme upon api update --- README.md | 6 +++--- scripts/update_api.sh | 2 ++ scripts/update_versions.py | 15 +++++++++++++++ 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 scripts/update_versions.py diff --git a/README.md b/README.md index 0212690b1..51f351d4b 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ Playwright is a Python library to automate [Chromium](https://www.chromium.org/H | | Linux | macOS | Windows | | :--- | :---: | :---: | :---: | -| Chromium 86.0.4238.0 | ✅ | ✅ | ✅ | -| WebKit 14.0 | ✅ | ✅ | ✅ | -| Firefox 80.0b8 | ✅ | ✅ | ✅ | +| Chromium 88.0.4324.0 | ✅ | ✅ | ✅ | +| WebKit 14.0 | ✅ | ✅ | ✅ | +| Firefox 83.0 | ✅ | ✅ | ✅ | Headless execution is supported for all browsers on all platforms. diff --git a/scripts/update_api.sh b/scripts/update_api.sh index a05afd6b6..5ee893976 100755 --- a/scripts/update_api.sh +++ b/scripts/update_api.sh @@ -1,5 +1,7 @@ #!/bin/bash +python scripts/update_versions.py + function update_api { echo "Generating $1" file_name="$1" diff --git a/scripts/update_versions.py b/scripts/update_versions.py new file mode 100644 index 000000000..d56809285 --- /dev/null +++ b/scripts/update_versions.py @@ -0,0 +1,15 @@ +import re +from playwright import sync_playwright + +with sync_playwright() as p: + r = open("README.md", "r") + text = r.read() + for browser_type in [p.chromium, p.firefox, p.webkit]: + rx = re.compile(r"([^<]+)") + browser = browser_type.launch() + text = rx.sub(f"{browser.version}", text) + browser.close() + + w = open("README.md", "w") + w.write(text) + w.close() pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy