Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs: fix typo in Python APIRequestContext example (#11861)
Aarni Koskela6881db681741
diff --git a/docs/src/api/class-apirequestcontext.md b/docs/src/api/class-apirequestcontext.mdindex e40c8c0284..588d3c7205 100644--- a/docs/src/api/class-apirequestcontext.md+++ b/docs/src/api/class-apirequestcontext.md@@ -71,13 +71,13 @@ with sync_playwright() as p:# This will launch a new browser, create a context and page. When making HTTP# requests with the internal APIRequestContext (e.g. `context.request` or `page.request`)# it will automatically set the cookies to the browser page and vise versa.- browser = playwright.chromium.launch()+ browser = p.chromium.launch()context = browser.new_context(base_url="https://api.github.com")api_request_context = context.requestpage = context.new_page()# Alternatively you can create a APIRequestContext manually without having a browser context attached:- # api_request_context = playwright.request.new_context(base_url="https://api.github.com")+ # api_request_context = p.request.new_context(base_url="https://api.github.com")# Create a repository.