Skip to content

Commit 5328350

Browse files
Updated tutorial part 3 instructions
1 parent a377682 commit 5328350

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tutorial/3-assertions.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Part 3: Writing assertions
22

3-
Part 3 of the workshop focuses on making assertions about the result page after performing a search.
3+
Part 3 of the tutorial focuses on making assertions about the result page after performing a search.
44
Waiting becomes a much bigger concern for these steps, but Playwright makes it easy.
55

66

@@ -245,8 +245,13 @@ Rerun the test again to make sure it works.
245245
If it does, congrats!
246246
You have just completed a full test case in Python using Playwright with pytest.
247247

248+
Playwright's [`Page`](https://playwright.dev/python/docs/api/class-page) class
249+
provides several methods for interacting with pages and getting state from them.
250+
Read the docs to familiarize yourself with them.
251+
`Page` provides methods to interact with *every* type of web element.
252+
248253
Notice how concise this code is.
249254
Unfortunately, it's not very reusable.
250255
If other tests needed to perform DuckDuckGo searches,
251256
they would duplicate similar calls.
252-
In the next workshop part, we will refactor this test using page objects to make the code more reusable and extendable.
257+
In the next tutorial part, we will refactor this test using page objects to make the code more reusable and extendable.

0 commit comments

Comments
 (0)