Skip to content

Commit 81e2672

Browse files
committed
Typo and fixes
1 parent ae9094a commit 81e2672

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

python/user-playwright-codegen-to-automatically-record-ui-interactions.md renamed to python/use-playwright-codegen-to-automatically-record-ui-interactions.md

+6
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,24 @@ def run(playwright: Playwright) -> None:
4343
context = browser.new_context()
4444
page = context.new_page()
4545
page.goto("https://playwright.dev/")
46+
47+
# Tap into the search box and search "codegen"
4648
page.get_by_role("button", name="Search").click()
4749
page.get_by_placeholder("Search docs").fill("codegen")
50+
51+
# Select the correct docs link
4852
page.locator("#docsearch-item-0").get_by_role("link",
4953
name="Running Codegen​ Test generator").click()
5054
page.get_by_role(
5155
"heading", name="Running CodegenDirect link to Running Codegen").click()
5256

57+
# The next page link is located in the bottom of the view
5358
page.mouse.wheel(0, 4000)
5459

5560
# These sleeps help to slow down the UI interactions so you can see what's actually done during the run
5661
time.sleep(2)
5762
page.locator(".pagination-nav__link--next").click()
63+
5864
time.sleep(3)
5965

6066
# ---------------------

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Inspired by [Josh Branchaud](https://dev.to/jbranchaud/how-i-built-a-learning-ma
1616
- [Display Web Scraping Data with Pandas](/python/display-web-scraping-data-with-pandas.md)
1717
- [Scrape Data From an API Endpoint](/python/scrape-data-from-an-api-endpoint.md)
1818
- [Scrape Dynamic Data with Playwright](/python/scrape-dynamic-data-with-playwright.md)
19-
- [Use Playwright Codegen to Automatically Record UI Interactions](python/user-playwright-codegen-to-automatically-record-ui-interactions.md)
19+
- [Use Playwright Codegen to Automatically Record UI Interactions](python/use-playwright-codegen-to-automatically-record-ui-interactions.md)
2020

2121
## CSS
2222

0 commit comments

Comments
 (0)