Skip to content

Commit a6d2bd2

Browse files
committed
Add item for chapter 7
1 parent 87ce4da commit a6d2bd2

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

docs/errata/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ If you find any mistakes in the first edition, *Real-World Web Development with
44

55
[**Errata** (25 items)](errata.md): Typos, tool user interface and behavior changes, or mistakes in code that would cause a compilation error that prevents a successful build.
66

7-
[**Improvements** (10 items)](improvements.md): Changes to text or code that would improve the content. These are optional.
7+
[**Improvements** (11 items)](improvements.md): Changes to text or code that would improve the content. These are optional.
88

99
[**Common Mistakes** (7 items)](common-mistakes.md): These are some of the most common mistakes that a reader might encounter when trying to get code in book tasks to work, or when trying to write your own code.
1010

docs/errata/improvements.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**Improvements** (10 items)
1+
**Improvements** (11 items)
22

33
If you have suggestions for improvements, then please [raise an issue in this repository](https://github.com/markjprice/web-dev-net9/issues) or email me at markjprice (at) gmail.com.
44

@@ -7,6 +7,7 @@ If you have suggestions for improvements, then please [raise an issue in this re
77
- [Page 36 - Creating a class library for a database context](#page-36---creating-a-class-library-for-a-database-context)
88
- [Page 49 - Setting up an ASP.NET Core MVC website, Page 69 - Controllers and actions](#page-49---setting-up-an-aspnet-core-mvc-website-page-69---controllers-and-actions)
99
- [Page x - Using entity and view models](#page-x---using-entity-and-view-models)
10+
- [Chapter 7 - Page navigation and title verification](#chapter-7---page-navigation-and-title-verification)
1011
- [Chapter 13 - Installing Umbraco CMS](#chapter-13---installing-umbraco-cms)
1112
- [Page 381 - Configuring the customer repository and Web API controller](#page-381---configuring-the-customer-repository-and-web-api-controller)
1213
- [Page 413 - Calling services in the Northwind MVC website](#page-413---calling-services-in-the-northwind-mvc-website)
@@ -70,6 +71,29 @@ record Module(string ModuleName, [other serializable properties]);
7071
record User(string UserName, List<Module> UserModules, [other serializable properties])
7172
```
7273

74+
# Chapter 7 - Page navigation and title verification
75+
76+
A reader emailed Packt, "I’m having trouble with chapter 7. The command “pwsh” is not recognized. Have not had any luck googling solutions."
77+
78+
In Step 4, I wrote, "Navigate to `Northwind.WebUITests\bin\Debug\net9.0` and, at the command prompt or terminal, install browsers for Playwright to automate, as shown in the following command:"
79+
```shell
80+
pwsh playwright.ps1 install
81+
```
82+
83+
A note links to the official Playwright guide for installing its custom browsers.
84+
85+
> Playwright needs special versions of browser binaries to operate. You must use the Playwright PowerShell script to install these browsers. If you have issues, you can learn more at the following link: https://playwright.dev/dotnet/docs/browsers.
86+
87+
When Googling solutions, a reader should immediately discover that their most likely problem is that PowerShell is not installed properly on their computer (i.e. not installed at all, or installed but not set up so it is found from the command prompt).
88+
89+
In the next edition, I will add extra links to help readers who struggle with this, for example:
90+
91+
**Install PowerShell on Windows, Linux, and macOS**
92+
https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell
93+
94+
Some of the answers here might help: **getting started instructions dont work** #1865:
95+
https://github.com/microsoft/playwright-dotnet/issues/1865
96+
7397
# Chapter 13 - Installing Umbraco CMS
7498

7599
In Step 1, I wrote the command to install project templates for Umbraco CMS version 14.2, as shown in the following command:

0 commit comments

Comments
 (0)