Skip to content

Commit 21e13c1

Browse files
committed
Basic layout
1 parent d463504 commit 21e13c1

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: VII - Common use cases
3+
description: description
4+
menuWeight: 7.7
5+
paths:
6+
- puppeteer-playwright/common-use-cases
7+
---
8+
9+
# [](#common-use-cases) Common use cases
10+
11+
<!-- We'll go over login flow, pagination, etc. -->
12+
13+
# [](#next) Next up
14+
15+
<!-- about the next lesson -->
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Logging into a website
3+
description: description
4+
menuWeight: 1
5+
paths:
6+
- puppeteer-playwright/common-use-cases/logging-into-a-website
7+
---
8+
9+
# [](#logging-into-a-website) Logging into a website
10+
11+
Whether it's auto-renewing a service, automatically sending a message on an interval, or automatically cancelling a Netflix subscription, one of the most popular things headless browsers are used for is automating things within a user's account on a certain website. Of course, automating anything on a user's account requires the automation of the login process as well. In this lesson, we'll be covering how to build a simple login flow from start to finish with Playwright or Puppeteer.
12+
13+
> In this lesson, we'll be using [yahoo.com](https://yahoo.com) as an example. Feel free to follow along using the academy Yahoo account credentials, or even deviate from the lesson a bit and try building a login flow for a different website of your choosing!
14+
15+
## [](#inputting-credentials) Inputting credentials
16+
17+
<!--
18+
1. Login (single concurrency)
19+
2. After enqueue new requests
20+
3. Pass cookies around
21+
-->

content/academy/puppeteer_playwright/page/waiting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Though in theory this is correct, it can result in a race condition in which the
6767
await Promise.all([page.waitForNavigation(), page.click('.g a')]);
6868
```
6969

70-
Though the line of cod above is also valid in Playwright, it is recommended to use [`page.waitForLoadState('load')`](https://playwright.dev/docs/api/class-page#page-wait-for-load-state) instead of `page.waitForNavigation()`, as it automatically handles the issues being solved in by using `Promise.all()`.
70+
Though the line of code above is also valid in Playwright, it is recommended to use [`page.waitForLoadState('load')`](https://playwright.dev/docs/api/class-page#page-wait-for-load-state) instead of `page.waitForNavigation()`, as it automatically handles the issues being solved by using `Promise.all()`.
7171

7272
```JavaScript
7373
await page.click('.g a');

0 commit comments

Comments
 (0)