File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Part 3: Writing assertions
2
2
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.
4
4
Waiting becomes a much bigger concern for these steps, but Playwright makes it easy.
5
5
6
6
@@ -245,8 +245,13 @@ Rerun the test again to make sure it works.
245
245
If it does, congrats!
246
246
You have just completed a full test case in Python using Playwright with pytest.
247
247
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
+
248
253
Notice how concise this code is.
249
254
Unfortunately, it's not very reusable.
250
255
If other tests needed to perform DuckDuckGo searches,
251
256
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.
You can’t perform that action at this time.
0 commit comments